标签:file makefile dispatch 机器 net aliyun types 主从 lease
主从架构
master:
10.150.20.90 qa05.010150020090.yz
slave:
10.15.20.97 qa06.010150020097.yz
10.150.20.132 cgdb.010150020132.yz
manager:
10.150.20.95 dev05.010150020095.yz
vip:
10.150.20.200
四台机器的系统情况:
OS:CentOS7.3
MySQL:5.7.21
MHA:0.58
网卡名:ens3
master slave安装mha4mysql-node-0.58
# yum install perl-CPAN perl-DBD-MySQL perl-Config-Tiny perl-Email-Date-Format perl-Log-Dispatch perl-Mail-Sender perl-Mail-Sendmail perl-MIME-Lite perl-MIME-Types perl-Parallel-ForkManager perl-Params-Validate perl-Time-HiRes # cd /tmp/mha # wget https://github.com/yoshinorim/mha4mysql-node/releases/download/v0.58/mha4mysql-node-0.58.tar.gz # tar -zxvf mha4mysql-node-0.58.tar.gz # cd mha4mysql-node-0.58 # perl Makefile.PL # make # make install
manger节点安装 mha4mysql-manager-0.58,在安装 mha manager 之前,必须要先安装 mha node,参照上面完成安装后,再进行下面的操作。
# cd /tmp/mha # wget https://github.com/yoshinorim/mha4mysql-manager/releases/download/v0.58/mha4mysql-manager-0.58.tar.gz # tar -zxvf mha4mysql-manager-0.58.tar.gz # cd mha4mysql-manager-0.58 # perl Makefile.PL # make # make install
参考:
https://blog.csdn.net/ctypyb2002/article/details/81478098
MHA实战篇:https://yq.aliyun.com/articles/58920
标签:file makefile dispatch 机器 net aliyun types 主从 lease
原文地址:https://www.cnblogs.com/elontian/p/10084498.html