Mysql HA方案之MySQL半复制+MHA+Keepalived+Atlas+LVS(学习笔记十九)
http://hugnew.com/?p=749&utm_source=tuicool&utm_medium=referral
架构图
角色 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