mysql mha docker compose
- download
$ cd /tmp
$ git clone https://github.com/breeze2/mysql-mha-docker.git
$ cd mysql-mha-docker
- run containers
$ docker-compose up -d
- start ssh service in all containers
$ sh ./scripts/ssh_start.sh
- copy ssh public key to each container
$ sh ./scripts/ssh_share.sh
- check mha ssh
$ sh ./scripts/mha_check_ssh.sh
- set mysql replication (master, backup and slave)
$ sh ./scripts/mysql_set_mbs.sh
- check mha repl
$ sh ./scripts/mha_check_repl.sh
- start mha manager
$ sh ./scripts/mha_start_manager.sh