Configure Redis Sentinels
Hey Folks!
In my production setup I have a 3 node Redis config with 1 master(read/write) and 2 replicas (read) and 3 Redis Sentinel nodes to handle failover and high availability.
Looking at the docker compose file, I only see the option to provide a single Redis host but not a list of Sentinel hosts to connect to. How do I configure Redis Sentinels instead of connecting to a single host?
My config matches example 2 here: https://redis.io/docs/latest/operate/oss_and_stack/management/sentinel/
2 Replies
Hi @Shri Unfortuently we don't have any experience with sentinel deployments nor have tested the system to work as such. Internally we use
REDIS_CACHE_CLUSTER_URL
with elasticache, which provides auto discovery of the cluster nodesI see, thank you for clarifying, I will try to setup a Redis Cluster instead of using Sentinels and hopefully thats very close to Elasticache and will let you know what I see