ProxySQL and MHA integration
MHA (Master High Availability Manager and tools for MySQL), is
almost fully integrated with the ProxySQL process.
What it means is that you can count on the MHA standard feature
to manage the failover, and on ProxySQL to manage the traffic and
shift from one server.
This is one of the main difference between using MHA and VIP vs MHA and ProxySQL.
There is no need to move IPs or re-define DNS.
The following is an example of configuration file for MHA in case you use it with ProxySQL:
[server default]
user=mha
password=mha
ssh_user=root
repl_password=replica
manager_log=/tmp/mha.log
manager_workdir=/tmp
remote_workdir=/tmp
master_binlog_dir=/opt/mysql_instances/mha1/logs
client_bindir=/opt/mysql_templates/mysql-57/bin
client_libdir=/opt/mysql_templates/mysql-57/lib …[Read more]