[bitnami/redis] after election, Redis master attempts to replicate from itself #31617
Labels
redis
solved
stale
15 days without activity
tech-issues
The user has a technical issue about an application
Name and Version
bitnami/redis 20.6.3
What architecture are you using?
amd64
What steps will reproduce the bug?
Set up Redis cluster using the given settings, and after an election, the master will try to sync from itself.
As you can see, the pod
redis-test-seq-redis-sentinel-ue1-node-2
tries to connect to itself viaredis-test-seq-redis-sentinel-ue1-node-2.redis-test-seq-redis-sentinel-ue1-headless.redis-test-seq.svc.cluster.local:6379
. This causes a number of issues, and often takes a long time and a lot of reelections before it resolves itself.Are you using any custom parameters or values?
Also happens without
replica.externalMaster.enabled=true
:What is the expected behavior?
The newly elected master should not attempt to resync from itself after it has been elected.
What do you see instead?
The master attempts to sync from itself after it has been elected, which means applications using Sentinel cannot write to the master during this time. Usually 2 - 3 elections need to happen before it resolves, and in this time a lot of errors have occurred.
You can see the metrics here:
After the third election, the newly elected master stops trying to sync from itself, and the cluster is now healthy again.
Additional information
No response
The text was updated successfully, but these errors were encountered: