redis: add redis cluster support (#1992)

* redis: add redis cluster support

* redis: update docs
This commit is contained in:
Caleb Doxsey 2021-03-17 13:48:41 -06:00 committed by GitHub
parent 0b1e89925a
commit 77fe37c8c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 386 additions and 12 deletions

View file

@ -952,6 +952,14 @@ The backend storage that databroker server will use.
The connection string that the databroker service will use to connect to storage backend.
For `redis`, the following URL types are supported:
- simple: `redis://{username}:{password}@{host}:{port}/{db}`
- sentinel: `redis+sentinel://[:password@]host:port[,host2:port2,...]/[master_name[/db]][?param1=value1[&param2=value2&...]]`
- cluster: `redis+cluster://[username:password@]host:port[,host2:port2,...]/[?param1=value1[&param2=value=2&...]]`
You can also enable TLS with `rediss://`, `rediss+sentinel://` and `rediss+cluster://`.
### Data Broker Storage Certificate File
- Environment Variable: `DATABROKER_STORAGE_CERT_FILE`

View file

@ -1071,6 +1071,14 @@ settings:
- Example: `"redis://localhost:6379/0"`, `"rediss://localhost:6379/0"`
doc: |
The connection string that the databroker service will use to connect to storage backend.
For `redis`, the following URL types are supported:
- simple: `redis://[username:password@]host:port/[db]`
- sentinel: `redis+sentinel://[:password@]host:port[,host2:port2,...]/[master_name[/db]][?param1=value1[&param2=value2&...]]`
- cluster: `redis+cluster://[username:password@]host:port[,host2:port2,...]/[?param1=value1[&param2=value=2&...]]`
You can also enable TLS with `rediss://`, `rediss+sentinel://` and `rediss+cluster://`.
- name: "Data Broker Storage Certificate File"
keys: ["databroker_storage_cert_file"]
attributes: |