patterndockerMinor
Cross region replication of Redis Docker container data
Viewed 0 times
rediscontainercrossdockerreplicationdataregion
Problem
I am looking for some help with figuring out a way to take a Redis Docker image and then do near real time replication of the data to another server maybe over an SSH tunnnel.
I need this to be able to go onto a Ubuntu 16.04 LTS VM/docker host, reason for this is OS limit is that the Redis Docker container is only a small part of our setup/application and the other major parts are not tested on anything else.
I was doing some reading and Redis itself has replication, but I am not sure if this is the best way to go about doing it.
We do have an SSH tunnel set up for another database sync.
How could I do this properly? The whole point/idea of this is that we need a DR plan and this factors into it.
My best idea so far has been a rsync between the two servers I need the data on, though I know that is not a good solution and want something a bit better.
I need this to be able to go onto a Ubuntu 16.04 LTS VM/docker host, reason for this is OS limit is that the Redis Docker container is only a small part of our setup/application and the other major parts are not tested on anything else.
I was doing some reading and Redis itself has replication, but I am not sure if this is the best way to go about doing it.
We do have an SSH tunnel set up for another database sync.
How could I do this properly? The whole point/idea of this is that we need a DR plan and this factors into it.
My best idea so far has been a rsync between the two servers I need the data on, though I know that is not a good solution and want something a bit better.
Solution
You don't mention orchestration, are you planning to implement all by your own configuration on top of Ubuntu?
I recommend you that take a look at Kubernetes and StatefulSet workloads
https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/
You can use Ubuntu as your host to accomplish your needs, but in my experience, you can only need to define correctly your workload and open the right ports to communicate and with the kubernetes integration on different providers you have the persistent volume easy to manage.
Also, I recommend you to review Helm and you have a redis-ha chart ready
https://github.com/helm/charts/tree/master/stable/redis-ha
I recommend you that take a look at Kubernetes and StatefulSet workloads
https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/
You can use Ubuntu as your host to accomplish your needs, but in my experience, you can only need to define correctly your workload and open the right ports to communicate and with the kubernetes integration on different providers you have the persistent volume easy to manage.
Also, I recommend you to review Helm and you have a redis-ha chart ready
https://github.com/helm/charts/tree/master/stable/redis-ha
Context
StackExchange DevOps Q#5306, answer score: 1
Revisions (0)
No revisions yet.