Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redis-ha: fix readiness probe for non-connected slaves #293

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bootc
Copy link
Contributor

@bootc bootc commented Aug 22, 2024

What this PR does / why we need it:

When Redis is running as a slave, don't pass readiness probes until and unless the replica is fully synchronised.

This resolves the issue where, when Redis is upgraded, the replica is marked ready while still syncing from the master. This can lead to the master pod being terminated and restarted with no slaves ready to take over from it, leaving the Redis cluster failed until the original primary comes back up again.

Which issue this PR fixes

No issue created (yet).

Checklist

  • DCO signed
  • Chart Version bumped
  • (n/a) Variables are documented in the README.md
  • Title of the PR starts with chart name (e.g. [stable/mychartname])

When Redis is running as a slave, don't pass readiness probes until and
unless the replica is fully synchronised.

This resolves the issue where, when Redis is upgraded, the replica is
marked ready while still syncing from the master. This can lead to the
master pod being terminated and restarted with no slaves ready to take
over from it, leaving the Redis cluster failed until the original
primary comes back up again.

Signed-off-by: Chris Boot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant