Skip to content

Instantly share code, notes, and snippets.

@hjanuschka
Created August 6, 2017 19:12
Show Gist options
  • 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