Skip to content

stable/redis-ha: Fix graceful Sentinel failover#377

Open
berni2288 wants to merge 3 commits into
DandyDeveloper:masterfrom
berni2288:redis-ha-fix-sentinel-failover
Open

stable/redis-ha: Fix graceful Sentinel failover#377
berni2288 wants to merge 3 commits into
DandyDeveloper:masterfrom
berni2288:redis-ha-fix-sentinel-failover

Conversation

@berni2288

Copy link
Copy Markdown

What this PR does / why we need it:

  • Move trigger-failover-if-master.sh from redis to sentinel container
    • This fixes failover not working because the sentinel container is already shutting down
    • This also fixes failover not working because the Sentinel password isn't injected
  • Fix preStop scripts not logging to stdout
  • Create redis-prestop.sh to wait for master change
  • Add disconnecting all Sentinel clients before shutdown to avoid client errors

Which issue this PR fixes

Special notes for your reviewer:

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

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

berni2288 and others added 3 commits January 20, 2026 10:32
* Move trigger-failover-if-master.sh from redis to sentinel container
** This fixes failover not working because the sentinel container is already shutting down
** This also fixes failover not working because the Sentinel password isn't injected
* Fix preStop scripts not logging to stdout
* Create redis-prestop.sh to wait for master change
* Add disconnecting all Sentinel clients before shutdown to avoid client errors
Signed-off-by: Aaron Layfield <aaron.layfield@gmail.com>
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.

2 participants