Skip to content

Commit 929a657

Browse files
Enable staticID feature to allow constant sentinel ids
After 2 redis pods failure or if worker nodes are restarted, sentinel not able to elect master. This feature was added with PR: helm/charts#19059 Sentinels never forget about replicas of a given master, even when they are unreachable for a long time. In Kubernetes, unless specified, each pod is given a random IP. In our case, with 2 slaves and one master, each replicas is attributed to a random IP. Holding on to old replicas IPs will only make it impossible for other sentinels to elect a new master. constant sentinel ID will allow other sentinel peers to update to the new given IP.
1 parent b8befd1 commit 929a657

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,10 @@ redis:
547547
# ## https://github.com/bitnami/charts/tree/master/bitnami/redis#master-slave-with-sentinel
548548
sentinel:
549549
enabled: true
550+
## Enable or disable static sentinel IDs for each replicas
551+
## If disabled each sentinel will generate a random id at startup
552+
## If enabled, each replicas will have a constant ID on each start-up
553+
##
550554
staticID: true
551555
networkPolicy:
552556
enabled: false

0 commit comments

Comments
 (0)