Skip to content

Commit 5ec35c3

Browse files
committed
Enhance Redis Sentinel documentation by specifying redisType and failover settings for high availability
Signed-off-by: MyMirelHub <15373565+MyMirelHub@users.noreply.github.com>
1 parent bb43567 commit 5ec35c3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

daprdocs/content/en/reference/components-reference/supported-pubsub/setup-redis-pubsub.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The above example uses secrets as plain strings. It is recommended to use a secr
4040
4141
| Field | Required | Details | Example |
4242
|--------------------|:--------:|---------|---------|
43-
| redisHost | Y | Connection-string for the redis host. If `"redisType"` is `"cluster"`, it can be multiple hosts separated by commas or just a single host. When using Redis Sentinel multiple sentinel addresses can also be provided as comma-separated values. | `localhost:6379`, `redis-master.default.svc.cluster.local:6379`
43+
| redisHost | Y | Connection-string for the redis host. If `"redisType"` is `"cluster"`, it can be multiple hosts separated by commas. When using Redis Sentinel (`"failover"` is `"true"`), multiple sentinel addresses can also be provided as comma-separated values. | `localhost:6379`, `redis-master.default.svc.cluster.local:6379`
4444
| redisPassword | N | Password for Redis host. No Default. Can be `secretKeyRef` to use a secret reference | `""`, `"KeFg23!"`
4545
| redisUsername | N | Username for Redis host. Defaults to empty. Make sure your redis server version is 6 or above, and have created acl rule correctly. | `""`, `"default"`
4646
| consumerID | N | The consumer group ID. | Can be set to string value (such as `"channel1"` in the example above) or string format value (such as `"{podName}"`, etc.). [See all of template tags you can use in your component metadata.]({{% ref "component-schema.md#templated-metadata-values" %}})
@@ -103,7 +103,7 @@ You can use [Helm](https://helm.sh/) to quickly create a Redis instance in our K
103103
```
104104
## Redis Sentinel configuration
105105

106-
When using Redis Sentinel for high availability, enable failover mode and provide the sentinel master name. Multiple sentinel addresses can be specified as a comma-separated list in the `redisHost` field for redundancy.
106+
When using Redis Sentinel for high availability, set `redisType` to `"node"`, enable failover mode with `failover: "true"`, and provide the sentinel master name. Multiple sentinel addresses can be specified as a comma-separated list in the `redisHost` field for redundancy.
107107

108108
```yaml
109109
apiVersion: dapr.io/v1alpha1
@@ -116,6 +116,8 @@ When using Redis Sentinel for high availability, enable failover mode and provid
116116
metadata:
117117
- name: redisHost
118118
value: "sentinel1:26379,sentinel2:26379,sentinel3:26379"
119+
- name: redisType
120+
value: "node"
119121
- name: failover
120122
value: "true"
121123
- name: sentinelMasterName

0 commit comments

Comments
 (0)