In our initial endeavours to containerise our website using docker and rancher, we set globally established a redis container. This caused problems if a user was directed to a different server.
Now we have a single redis container operating on one host, and all web containers relying on that redis container, as follows:
I was wondering if anyone has carried out a redis master-slave setup for hosts across a rancher environment and could give me some tips to get it going?
I read through the blog about redis clustering but it was not what I want to do.
I put this on the backlog of things to do, but haven’t gotten around to it yet. I was speaking with some people about it this last week and discussed possibly back engineering redis sentinel image to figure some way to do it. I found a helpful read here.
We have successfully setup a very stable redis sentinel cluster on rancher. It has been used for spring session persistence and tested several failover scenarios across several hosts.