This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redis password authentication support (#2950)
* Added support for password authentication in RedisStandaloneConfiguration, RedisClusterConfiguration and RedisSentinelConfiguration * - Added a Redis Setup documentation page to the docs - Added a comment in application.properties
- Loading branch information
1 parent
a0cc539
commit 3efbb83
Showing
5 changed files
with
114 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Redis Configuration | ||
|
||
By default conductor runs with an in-memory Redis mock. However, you | ||
can change the configuration by setting the properties `conductor.db.type` and `conductor.redis.hosts`. | ||
|
||
## `conductor.db.type` | ||
|
||
| Value | Description | | ||
|--------------------------------|----------------------------------------------------------------------------------------| | ||
| dynomite | Dynomite Cluster. Dynomite is a proxy layer that provides sharding and replication. | | ||
| memory | Uses an in-memory Redis mock. Should be used only for development and testing purposes.| | ||
| redis_cluster | Redis Cluster configuration. | | ||
| redis_sentinel | Redis Sentinel configuration. | | ||
| redis_standalone | Redis Standalone configuration. | | ||
|
||
|
||
|
||
## `conductor.redis.hosts` | ||
|
||
Expected format is `host:port:rack` separated by semicolon, e.g.: | ||
|
||
```properties | ||
conductor.redis.hosts=host0:6379:us-east-1c;host1:6379:us-east-1c;host2:6379:us-east-1c | ||
``` | ||
|
||
### Auth Support | ||
|
||
Password authentication is supported. The password should be set as the 4th param of the first host `host:port:rack:password`, e.g.: | ||
|
||
```properties | ||
conductor.redis.hosts=host0:6379:us-east-1c:my_str0ng_pazz;host1:6379:us-east-1c;host2:6379:us-east-1c | ||
``` | ||
|
||
|
||
**Notes** | ||
|
||
- In a cluster, all nodes use the same password. | ||
- In a sentinel configuration, sentinels and redis nodes use the same password. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters