RedisLabs / redis-cluster-proxy

A proxy for Redis clusters.
GNU Affero General Public License v3.0
990 stars 129 forks source link

Q: Works for sentinel? #57

Closed naseemkullah closed 4 years ago

naseemkullah commented 4 years ago

Hello,

Firstly, congrats on Redis 6 release👍

Today, my org is using Sentinel and was wondering if this proxy works for sentinel as well, or if there exists such a proxy?

Reason we use Sentinel is our use case is for HA/Failover only, no need for horizontal sharding at this time.

ShooterIT commented 4 years ago

I think it doesn't. It gets routing topology by sending cluster nodes command to redis enabled cluster mode.

toredash commented 4 years ago

Reason we use Sentinel is our use case is for HA/Failover only, no need for horizontal sharding at this time.

If that is your usecase, you do not need (or can for that matter) use Redis Cluster Proxy. Redis Cluster Proxy is intended to be used with Redis Cluster (AFAIK), not Redis.

naseemkullah commented 4 years ago

Thanks for confirming.

It appears that a sentinel equivalent would be https://www.haproxy.com/blog/haproxy-advanced-redis-health-check/