We are trying to setup a redis cluster in a multi-datacenter environment, with one cluster setup in one datacenter and the other cluster in the other datacenter, in this case, is there a way to setup cross datacenter replication of cluster using redis cluster ? Has anyone setup redis cluster in this way or are there better ways to do this ?
Asked
Active
Viewed 3,206 times
4
-
I would suggest looking at [twemproxy](https://github.com/twitter/twemproxy) rather than trying to do this using the native replication/clustering features in Redis. The latencies and the chances of inter-site link failures are likely to impact your cache performance. – Jim Dennis Apr 26 '17 at 18:55
-
@JimDennis we did look at twmproxy and dynomite , but I was hoping we could use native redis clustering for this if possible – Premil Jacob Apr 26 '17 at 20:14
-
@PremilJacob did you find a solution? can you share what you decided? – Almog Baku Sep 27 '17 at 08:34
1 Answers
0
As far as i have seen, only Dynomite seems to solve this problem.
Else we need to implement our own by having a setup like this:
DataCenter1:
[multiple redis clients]===>[localProxy-DC1]====> TWEMPROXY-DC1 ===> [Multiple Redis Single Instances with Sentinel]
DataCenter-2:
[localProxy-DC1] ====replicates commands async===> TWEMPROXY-DC2 ====> [Multiple Redis Single Instances with Sentinel]

aBnormaLz
- 809
- 6
- 22

summasumma
- 11
- 1