Repository navigation
redis: documented Sentinel quorum and failure domain requirement - #1612
Merged
groundhog2k merged 4 commits intoNov 23, 2026
Merged
groundhog2k merged 4 commits into
groundhog2k merged 4 commits into
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1611.
Documents the failure mode described in the issue and adds a working topology spread example. Chart behavior is unchanged.
What changed
Spreading the pods across failure domainsunder the HA setup:haMode.quorum: 2the three pods must run in three independent failure domains;NOQUORUM, no failover, the surviving replica rejects writes withREADONLY, and HA mode exposes no read-write Service to fall back to);ScheduleAnywayis only a hint and does not prevent the 2-of-3 placement;DoNotSchedule,maxSkew: 1andminDomains: 3, which keeps the third podPendingon a cluster with fewer than three zones instead of silently running without quorum protection;helm install/upgrade --waitfails withReady: 2/3;Pendingpod by itself, because the StatefulSet keeps it at its old revision; the pod has to be deleted;minDomainsavailability (Kubernetes v1.30+, or the feature gate on v1.28/v1.29);haMode.replicas/haMode.quorumwhen fewer failure domains are available.haMode.quorumandtopologySpreadConstraintsinvalues.yamlpointing to the README section.2.5.1and release notes entry added.Verification
Chart:
helm lint charts/redispasses.helm template my-release charts/rediswith the documented values renders the constraint, and the examplelabelSelectormatches the pod template labels produced byredis.selectorLabels.Live cluster (Kubernetes v1.35.1, three nodes, one per zone
ru-central1-a/-d/-e), chart default imageredis:8.10.3on all pods:haMode.enabled: trueand the documented constraint: all three podsRunning, one per zone, andSENTINEL ckquorumreturnsOK 3 usable Sentinelson every pod.OK 3 usable Sentinelsimmediately after the failure, thenNOQUORUM 1 usable SentinelsoncehaMode.downAfterMilliseconds(30s) has passed. The survivor keeps the replica role and rejects writes withREADONLY You can't write against a read only replica, and in HA mode the Service exposes only port26379, so there is no read-write endpoint to fall back to.minDomains: with three schedulable nodes split into only two failure domains (temporary node labels, since the zone label is restored by the managed Kubernetes control plane), the documented constraint left the third podPending(0/3 nodes are available: 3 node(s) didn't match pod topology spread constraints), the StatefulSet stayed atReady: 2/3andhelm upgrade --waittimed out withresource StatefulSet/... not ready ... Ready: 2/3.minDomainsfrom the same release did not move thePendingpod: the StatefulSet kept it at the old revision and the rollout stalled there. After thePendingpod was deleted, it was recreated with the new constraint and placed next to an existing pod (2 + 1), which is what the new README sentence describes.The earlier wording that the Service "stays read-only" was corrected: in HA mode the chart exposes only the Sentinel port, so clients get
READONLYerrors from the surviving replica rather than from a Service.Everything created for the test was removed afterwards: release, namespace, node labels and cordons.