Skip to content

Instantly share code, notes, and snippets.

@hjanuschka
Created August 6, 2017 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hjanuschka/78603c8ba7390509619bfafb88ac822a to your computer and use it in GitHub Desktop.
Save hjanuschka/78603c8ba7390509619bfafb88ac822a to your computer and use it in GitHub Desktop.
# master slave replica.
https://github.com/bitnami/bitnami-docker-mysql/blob/master/docker-compose-replication.yml
# mysql-proxy with rw-splitting.
https://github.com/vimagick/dockerfiles/blob/master/mysql-proxy/docker-compose.yml
use rwsplitting.lua and set ` --proxy-backend-addresses` to the master/writeable nodes.
and `--proxy-read-only-backend-addresses` to the read replicas.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment