Skip to content

redis: documented Sentinel quorum and failure domain requirement - #1612

Merged
groundhog2k merged 4 commits into
groundhog2k:masterfrom
patsevanton:docs/redis-hamode-failure-domains
Nov 23, 2026
Merged

groundhog2k merged 4 commits into
groundhog2k:masterfrom
patsevanton:docs/redis-hamode-failure-domains

Conversation

@patsevanton

@patsevanton patsevanton commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #1611.

Documents the failure mode described in the issue and adds a working topology spread example. Chart behavior is unchanged.

What changed

  • New README section Spreading the pods across failure domains under the HA setup:
    • Sentinel availability equals data pod availability, so with the default haMode.quorum: 2 the three pods must run in three independent failure domains;
    • what a single zone failure looks like when two pods share a zone (NOQUORUM, no failover, the surviving replica rejects writes with READONLY, and HA mode exposes no read-write Service to fall back to);
    • ScheduleAnyway is only a hint and does not prevent the 2-of-3 placement;
    • example with DoNotSchedule, maxSkew: 1 and minDomains: 3, which keeps the third pod Pending on a cluster with fewer than three zones instead of silently running without quorum protection;
    • that the release then never becomes ready and helm install/upgrade --wait fails with Ready: 2/3;
    • that relaxing the constraint does not reschedule the stuck Pending pod by itself, because the StatefulSet keeps it at its old revision; the pod has to be deleted;
    • minDomains availability (Kubernetes v1.30+, or the feature gate on v1.28/v1.29);
    • guidance to adapt haMode.replicas/haMode.quorum when fewer failure domains are available.
  • Comments near haMode.quorum and topologySpreadConstraints in values.yaml pointing to the README section.
  • Chart version bumped to 2.5.1 and release notes entry added.

Verification

Chart:

  • helm lint charts/redis passes.
  • helm template my-release charts/redis with the documented values renders the constraint, and the example labelSelector matches the pod template labels produced by redis.selectorLabels.

Live cluster (Kubernetes v1.35.1, three nodes, one per zone ru-central1-a/-d/-e), chart default image redis:8.10.3 on all pods:

  • Install with haMode.enabled: true and the documented constraint: all three pods Running, one per zone, and SENTINEL ckquorum returns OK 3 usable Sentinels on every pod.
  • Master node and one replica node cordoned, both pods force-deleted: the surviving Sentinel answers OK 3 usable Sentinels immediately after the failure, then NOQUORUM 1 usable Sentinels once haMode.downAfterMilliseconds (30s) has passed. The survivor keeps the replica role and rejects writes with READONLY You can't write against a read only replica, and in HA mode the Service exposes only port 26379, 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 pod Pending (0/3 nodes are available: 3 node(s) didn't match pod topology spread constraints), the StatefulSet stayed at Ready: 2/3 and helm upgrade --wait timed out with resource StatefulSet/... not ready ... Ready: 2/3.
  • Removing minDomains from the same release did not move the Pending pod: the StatefulSet kept it at the old revision and the rollout stalled there. After the Pending pod 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 READONLY errors from the surviving replica rather than from a Service.

Everything created for the test was removed afterwards: release, namespace, node labels and cordons.

@groundhog2k groundhog2k self-assigned this Nov 23, 2026
@groundhog2k groundhog2k added the documentation Improvements or additions to documentation label Nov 23, 2026
@groundhog2k
groundhog2k merged commit 173e1e2 into groundhog2k:master Nov 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

redis: haMode has no default zone spread, so one failed zone can take Sentinel quorum with the data pods

2 participants