Commit 929a657
authored
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
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
550 | 554 | | |
551 | 555 | | |
552 | 556 | | |
| |||
0 commit comments