Discussion:
[redis-db] Redis for Disaster Recovery Site
Phuc Le
2018-10-31 11:44:32 UTC
Permalink
Hi all.
I have 2 sites (one master, one DR site), on each, I set up a redis cluster
(6 nodes).
My question: Is there any way to sync data between the 2 clusters real time?
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Raunak Bhansali
2018-10-31 14:36:14 UTC
Permalink
There are many approaches to do that
1. You can tail the command on the prod db and then write it into a remote
logserver and then another agent can easily replay those commands to
achieve this state.
2. Use rsync periodically to replicate the rdb file generated by redis onto
the DR machine and then restart the same. In order to get the rdb file you
can simply check the redis.Conf file specified in redis-cli info

Coming to pros and cons
1st one has a performance penalty on the serving redis as using monitor to
tail commands drastically impacts the performance.

2nd one is what I would recommend as it's safe reliable and also doesn't
have any performance impact. Moreover in case of disaster serving old
content which might be a sync period older is also acceptable.
Post by Phuc Le
Hi all.
I have 2 sites (one master, one DR site), on each, I set up a redis
cluster (6 nodes).
My question: Is there any way to sync data between the 2 clusters real time?
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Phuc Le
2018-11-01 02:58:47 UTC
Permalink
I really appreciate your support.
Let me try.

Vào 21:36:34 UTC+7 Thứ Tư, ngày 31 tháng 10 năm 2018, Raunak Bhansali đã
Post by Raunak Bhansali
There are many approaches to do that
1. You can tail the command on the prod db and then write it into a remote
logserver and then another agent can easily replay those commands to
achieve this state.
2. Use rsync periodically to replicate the rdb file generated by redis
onto the DR machine and then restart the same. In order to get the rdb file
you can simply check the redis.Conf file specified in redis-cli info
Coming to pros and cons
1st one has a performance penalty on the serving redis as using monitor to
tail commands drastically impacts the performance.
2nd one is what I would recommend as it's safe reliable and also doesn't
have any performance impact. Moreover in case of disaster serving old
content which might be a sync period older is also acceptable.
Post by Phuc Le
Hi all.
I have 2 sites (one master, one DR site), on each, I set up a redis
cluster (6 nodes).
My question: Is there any way to sync data between the 2 clusters real time?
--
You received this message because you are subscribed to the Google Groups
"Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an
<javascript:>.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Loading...