Figure HA-7a · Queue tier
Redis high availability
Sentinel promotes a replica; the VIP follows the primary
Client traffic
VIP
Virtual IP
Replication
Health check and watch
01 · CLIENT
rConfig
One host setting
02 · ENDPOINT
Queue VIP
03 · DATA
Redis
One primary, one replica
04 · QUORUM
Sentinel
Three watchers vote
rConfig active node
REDIS_HOST = 192.0.2.40
VIP 192.0.2.40
keepalived: role:master check
redis1
PRIMARY
Redis · reads and writes
redis2
REPLICA
Redis · read-only copy
Sentinel 1
Sentinel 2
Sentinel 3
majority of 3 decides
After failover
redis2
PRIMARY
promoted by Sentinel
VIP 192.0.2.40
redis1
FAILED
Redis
The VIP follows the new primary. rConfig keeps the same REDIS_HOST.