Docker failover: Redis, MySQL and Nginx

Currently we have Redis master and Redis slave containers. MySQL master and MySQL slave containers. Both replicating.

How would we handle a failure on one of the master containers? Should I be using something like Nginx as a forward proxy to detect connection failures?

  • Docker shared volumes
  • Docker: access to VPN domain from docker
  • Docker Garbage collector not finding anything to delete
  • Remote debugging NodeJS in Docker with Visual Studio Code
  • Artifactory pro server behind an nginx frontend
  • Error start mysql docker
  • Already we do this on our API servers and Web servers.

  • proxy'ing between docker containers
  • Elastic Beanstalk Docker App fails after “Restart App Servers”
  • Access docker within container on jenkins slave
  • Docker container blocking text/event-stream
  • Grep/Awk: Find status from table column
  • How does rancher schedule services to specific hosts?
  • One Solution collect form web for “Docker failover: Redis, MySQL and Nginx”

    For the replication of MySQL I suggest configuring MySQL in a master <-> master approach and setup an HAProxy load balancer over them, as eugeneware does in It is very easy to set up using an HAProxy Docker container.

    For Redis it definitely looks like you need Sentinel: In you can find a docker image for Sentinel.

    I don’t think using a proxy like Nginx is an appropriate solution for both problems.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.