RedisLabs / redis-cluster-proxy

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

Question : How to guarantee HA of redis-cluster-proxy #84

Open LiuJin1987 opened 4 years ago

LiuJin1987 commented 4 years ago

I've tried this app out and find that it is very nice! My question is: Considering that Redis itself has replica mode to guarantee HA, is there any measure to guarantee HA of redis-cluster-proxy? If yes, then how to use redis-cluster-proxy in replica mode? If no, then do you have any plan about this?

ShooterIT commented 3 years ago

AFAIK, proxy needn't have replica mode. This repo proxy also doesn't support. For HA, maybe you can use DNS/VIP that contain many proxies ip, you parse DNS/VIP to get all proxy instances, and connect one of them. Connect another proxy instance if one is failed. Moreover, you also add into new proxy instances into DNS/VIP to guarantee there always are some available proxy instances.

arylee commented 3 years ago

We use "keepalived" to provide a virtual IP with 3 servers.