Valkey Sentinel: get-master-addr-by-name still names the old node after failover. Besides SENTINEL RESET, what do you run? #4616
Replies: 1 comment 3 replies
|
I would not make First compare every Sentinel: Check |
|
I would not make First compare every Sentinel: Check |
Uh oh!
There was an error while loading. Please reload this page.
We've been hitting leftover Sentinel advertisements on Valkey in Kubernetes.
ROLE + SET on the data nodes already shows a single writable primary. One Sentinel still answers SENTINEL get-master-addr-by-name with the previous pod, or a dead Pod IP. Clients that land on that Sentinel write into a hole.
The usual hammer is SENTINEL RESET or restart Sentinel. Dual-master is a different problem; we do not send REPLICAOF.
Same leftover pointer as #1322 (the ad never converges). RESET is also the workaround people use on #2158.
We open-sourced a sidecar next to each Sentinel: ROLE+SET as the oracle, heal the pointer through Sentinel's own MONITOR API. Same wire protocol as Redis Sentinel. Default is dry-run.
https://github.com/vpnmesh/redis-sentinel-reconciler
Image: https://hub.docker.com/r/vpnmesh/redis-sentinel-reconciler
Helm: oci://ghcr.io/vpnmesh/charts/redis-sentinel-reconciler
One reconciler per Sentinel.
What do other Valkey operators run for leftover ads besides bouncing Sentinel?
All reactions