http://hugnew.com/?p=749&utm_source=tuicool&utm_medium=referral
架构图
![img_4dde1c00f96530484fb2f84147d272fd.jpe](https://i-blog.csdnimg.cn/blog_migrate/c0ecc948edf3b8fdf0e7ba107127d4a2.jpeg)
角色 ip地址 主机名
MHA Manger 209
Mysql Master 226
Mysql slave1 227
Mysql slave2 228
Candicate master 230
Atlas1 210
Atlas2 214
LVS Master 231
LVS Backup 232
MHA
1、所有服务器:yum install perl-DBD-MySQL -y
unzip mha4mysql-node-master.zip
mv mha4mysql-node-master /usr/local/
cd /usr/local/mha4mysql-node-master
yum install -y perl-DBD-MySQL perl-Config-Tiny perl-Log-Dispatch perl-Parallel-ForkManager perl-Time-HiRes cpanperl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker perl-ExtUtils-Embed
cpan ExtUtils::Install
cpan Module::Install
perl Makefile.PL
make&&make install