redis-sentinel-with-haproxy icon indicating copy to clipboard operation
redis-sentinel-with-haproxy copied to clipboard

Build fault-tolerance Redis cluster with Sentinel on Docker

Build fault-tolerance Redis cluster with Sentinel on Docker

Topology

topology

Run

docker-compose up -d

Tail sentinel logs

clear && tail -f /var/log/sentinel.log

Get redis replication info per seconds

while true; do redis-cli info replication; sleep 1; clear; done