SlideShare une entreprise Scribd logo
1  sur  14
Oracle DGHA
介绍 内容
 DGHA 是什么?
 现有的 DATAGUARD HA 方案
 DGHA 的特性
 DGHA 所需条件
 DGHA :典型切换场景
 DGHA :故障转移过程
 DGHA :典型的时间点
 DGHA : Failover 机制
 Oracle RAC one node HA
DGHA 是什么 ?
• DGHA: 此脚本针对 oracle dataguard 设计,使用共享存储存放
redo,spfile 以及 controlfile 从而达到了切换数据零丢失。
• 目的 : 自动管理主库备库切换以便最少化当机时间
• 由一个的 Perl 主脚本和几个 shell 脚本组成
• 可采用集中管理模式,可以管理多套数据库集群。
• 原有主备库不需要安装额外的软件模块
现 有的 DATAGUARD HA 方案
• DataGuard Broker
-- 只能 failover 到某个指定实例
-- 是 oracle 官方方案
• 共享存储模式
-- 需要共享一份数据,需要存储
-- 不好利用 PCIE 等高性能 IO 设备
• Dataguard 模式
-- 简单、不需要存储
-- 可能有数据丢失,可能会破坏整个集群
• 共享 redo/controlfile/spfile 模式
-- 需要小的存储
-- 数据零丢失,不会破坏集群
DGHA 的特性
• 主服务器的自动监控和故障转移
• 切换数据零丢失
• Power off 功能,避免脑裂
• 详细的日志输出
• 短信和邮件报警功能
DGHA 所需条件
• SSH 公钥验证
DGHA 管理节点通过 ssh 连接 oracle 服务器,进行验证和一些管理操作。
为了使这些过程自动化,推荐使用 SSH 公钥验证密码(也可以使用密码
模式进行)
• 操作系统
目前只测试过 Linux 系统
• 主备库需要共享存储来存放 redo 、 controlfile 、 spfile
• 依赖模块
Net::OpenSSH
DBD::Oracle
Log::Dispatch
DGHA :典型切换场 景
• 监控整个集群:定期 check 主库
• 如果检测到 primary 故障,启动切换
• 检查备库是否达到要求
• 关闭主库,断电
• 用主库的 redo 等替换备库的, recover 备库,然后打开
• 发送 Email failover 报告 , 停止监控
DGHA :故障转 移过 程
DGHA :故障转 移过 程
正常的检查过程:
• 主备库为 DG , online redo , spfile 和 control 文件存放
于共享存储,存储对主备服务器都可见
• 更新主库心跳表,判断主库是否可用
• 如果主库是可 ssh 的,到主库本地登录检查( avoid
listener problem or processes exceeded )
DGHA :故障转 移过 程
切换过程:
• 关闭原主库实例, Power off 原主库服务器
• 备份原备库的 online redo 和 control 文件;拷贝原主库的
online redo 和 control file , spfile
• 备库应用原主库 online redo 恢复,保证数据零丢失
• 将备库切换到主库 , 其他备库同步新的主库
DGHA :典型的时间 点
• 一般情况下完成整个过程需 3-5 分钟
• check 频率一般设置为 10 秒
• 检测主库一般为 1 分钟: 3 次 check+ 连接超时 +ssh 超时
• 主库关闭 + 备库检测 +power off 一般为 1-2 分钟
• 备库关闭 + 恢复 + 打开一般为 1-2 分钟
DGHA : Failover 机制
主库检测频率

主库连续 3 次,每次间隔一定时间(比如 10s )

主库检测类型

长连接 UPDATE HACHECK SET CHECK_TIME=SYSDATE
本地 UPDATE HACHECK2 SET CHECK_TIME=SYSDATE
备库 lag 检测
最大延迟 3 分钟
本地检测最大重试次数( for maximum number of processes (xxx)
exceeded )
最大次数 8 次
Power off 状态检测
最大次数 8 次
Ssh 超时时间
每次为 5 秒,重试 3 次
Oracle RAC one node HA
Oracle RAC One Node is
integrated with Oracle
Clusterware which
monitors the health of the
database and ensures
database service
availability. In the event
of a failure, Oracle RAC
One Node will detect the
failure and either restart
the failed database, or fail
it over to another server.
参考资 料
1 http://search.cpan.org/~salva/Net-OpenSSH0.60/lib/Net/OpenSSH.pm
2 MHA mha4mysql-manager0.55samplesscriptspower_manager.pl
3 https://code.google.com/p/mysql-master-ha/

Contenu connexe

Tendances

Cloudstack dev/user sharing
Cloudstack dev/user sharingCloudstack dev/user sharing
Cloudstack dev/user sharinggavin_lee
 
Monitor is all for ops
Monitor is all for opsMonitor is all for ops
Monitor is all for ops琛琳 饶
 
Building the Production Ready EB level Storage Product from Ceph - Dongmao Zhang
Building the Production Ready EB level Storage Product from Ceph - Dongmao ZhangBuilding the Production Ready EB level Storage Product from Ceph - Dongmao Zhang
Building the Production Ready EB level Storage Product from Ceph - Dongmao ZhangCeph Community
 
美团点评技术沙龙010-Redis Cluster运维实践
美团点评技术沙龙010-Redis Cluster运维实践美团点评技术沙龙010-Redis Cluster运维实践
美团点评技术沙龙010-Redis Cluster运维实践美团点评技术团队
 
MySQL压力测试经验
MySQL压力测试经验MySQL压力测试经验
MySQL压力测试经验Jinrong Ye
 
主库自动切换 V2.0
主库自动切换 V2.0主库自动切换 V2.0
主库自动切换 V2.0jinqing zhu
 
反向代理工作原理及Squid简介
反向代理工作原理及Squid简介反向代理工作原理及Squid简介
反向代理工作原理及Squid简介diruser
 
DNS协议与应用简介
DNS协议与应用简介DNS协议与应用简介
DNS协议与应用简介琛琳 饶
 
系统性能分析和优化.ppt
系统性能分析和优化.ppt系统性能分析和优化.ppt
系统性能分析和优化.pptFrank Cai
 
课题三:Nginx基础知识
课题三:Nginx基础知识课题三:Nginx基础知识
课题三:Nginx基础知识Liu Allen
 
PC服务器阵列卡管理简易手册 叶金荣@CYOU-20121223
PC服务器阵列卡管理简易手册 叶金荣@CYOU-20121223PC服务器阵列卡管理简易手册 叶金荣@CYOU-20121223
PC服务器阵列卡管理简易手册 叶金荣@CYOU-20121223Jinrong Ye
 
Bypat博客出品-服务器运维集群方法总结2
Bypat博客出品-服务器运维集群方法总结2Bypat博客出品-服务器运维集群方法总结2
Bypat博客出品-服务器运维集群方法总结2redhat9
 
SRE 讀書會 Round 4 #37 - DNS 時快時慢,我該怎麼辦
SRE 讀書會 Round 4 #37 - DNS 時快時慢,我該怎麼辦SRE 讀書會 Round 4 #37 - DNS 時快時慢,我該怎麼辦
SRE 讀書會 Round 4 #37 - DNS 時快時慢,我該怎麼辦HanLing Shen
 
淘宝主备数据库自动切换
淘宝主备数据库自动切换淘宝主备数据库自动切换
淘宝主备数据库自动切换mysqlops
 

Tendances (19)

Cloudstack dev/user sharing
Cloudstack dev/user sharingCloudstack dev/user sharing
Cloudstack dev/user sharing
 
Monitor is all for ops
Monitor is all for opsMonitor is all for ops
Monitor is all for ops
 
Building the Production Ready EB level Storage Product from Ceph - Dongmao Zhang
Building the Production Ready EB level Storage Product from Ceph - Dongmao ZhangBuilding the Production Ready EB level Storage Product from Ceph - Dongmao Zhang
Building the Production Ready EB level Storage Product from Ceph - Dongmao Zhang
 
Ceph perf-tunning
Ceph perf-tunningCeph perf-tunning
Ceph perf-tunning
 
美团点评技术沙龙010-Redis Cluster运维实践
美团点评技术沙龙010-Redis Cluster运维实践美团点评技术沙龙010-Redis Cluster运维实践
美团点评技术沙龙010-Redis Cluster运维实践
 
Ceph intro
Ceph introCeph intro
Ceph intro
 
MySQL压力测试经验
MySQL压力测试经验MySQL压力测试经验
MySQL压力测试经验
 
主库自动切换 V2.0
主库自动切换 V2.0主库自动切换 V2.0
主库自动切换 V2.0
 
反向代理工作原理及Squid简介
反向代理工作原理及Squid简介反向代理工作原理及Squid简介
反向代理工作原理及Squid简介
 
DNS协议与应用简介
DNS协议与应用简介DNS协议与应用简介
DNS协议与应用简介
 
系统性能分析和优化.ppt
系统性能分析和优化.ppt系统性能分析和优化.ppt
系统性能分析和优化.ppt
 
Ansible 101
Ansible 101Ansible 101
Ansible 101
 
Windbg入门
Windbg入门Windbg入门
Windbg入门
 
课题三:Nginx基础知识
课题三:Nginx基础知识课题三:Nginx基础知识
课题三:Nginx基础知识
 
高可用
高可用高可用
高可用
 
PC服务器阵列卡管理简易手册 叶金荣@CYOU-20121223
PC服务器阵列卡管理简易手册 叶金荣@CYOU-20121223PC服务器阵列卡管理简易手册 叶金荣@CYOU-20121223
PC服务器阵列卡管理简易手册 叶金荣@CYOU-20121223
 
Bypat博客出品-服务器运维集群方法总结2
Bypat博客出品-服务器运维集群方法总结2Bypat博客出品-服务器运维集群方法总结2
Bypat博客出品-服务器运维集群方法总结2
 
SRE 讀書會 Round 4 #37 - DNS 時快時慢,我該怎麼辦
SRE 讀書會 Round 4 #37 - DNS 時快時慢,我該怎麼辦SRE 讀書會 Round 4 #37 - DNS 時快時慢,我該怎麼辦
SRE 讀書會 Round 4 #37 - DNS 時快時慢,我該怎麼辦
 
淘宝主备数据库自动切换
淘宝主备数据库自动切换淘宝主备数据库自动切换
淘宝主备数据库自动切换
 

Similaire à Oracle dgha

1, OCP - architecture intro
1, OCP - architecture intro1, OCP - architecture intro
1, OCP - architecture introted-xu
 
1号店数据库架构
1号店数据库架构1号店数据库架构
1号店数据库架构Louis liu
 
7, OCP - configure database for backup and recovery
7, OCP - configure database for backup and recovery7, OCP - configure database for backup and recovery
7, OCP - configure database for backup and recoveryted-xu
 
Nosql三步曲
Nosql三步曲Nosql三步曲
Nosql三步曲84zhu
 
MySQL自动切换设计与实现
MySQL自动切换设计与实现MySQL自动切换设计与实现
MySQL自动切换设计与实现orczhou
 
開發環境建置
開發環境建置開發環境建置
開發環境建置Shengyou Fan
 
分布式系统缓存设计
分布式系统缓存设计分布式系统缓存设计
分布式系统缓存设计zhujiadun
 
分布式系统缓存设计
分布式系统缓存设计分布式系统缓存设计
分布式系统缓存设计aleafs
 
2, OCP - installing and creating a database
2, OCP - installing and creating a database2, OCP - installing and creating a database
2, OCP - installing and creating a databaseted-xu
 
20111018 zhouchen share
20111018 zhouchen share20111018 zhouchen share
20111018 zhouchen sharezcbug
 
4, OCP - oracle networking
4, OCP - oracle networking4, OCP - oracle networking
4, OCP - oracle networkingted-xu
 
lua & ngx_lua 的介绍与应用
lua & ngx_lua 的介绍与应用lua & ngx_lua 的介绍与应用
lua & ngx_lua 的介绍与应用hugo
 
Notes of jcip
Notes of jcipNotes of jcip
Notes of jcipDai Jun
 
Exadata那点事
Exadata那点事Exadata那点事
Exadata那点事freezr
 
服务器基准测试-叶金荣@CYOU-20121130
服务器基准测试-叶金荣@CYOU-20121130服务器基准测试-叶金荣@CYOU-20121130
服务器基准测试-叶金荣@CYOU-20121130Jinrong Ye
 
Bypat博客出品-服务器运维集群方法总结
Bypat博客出品-服务器运维集群方法总结Bypat博客出品-服务器运维集群方法总结
Bypat博客出品-服务器运维集群方法总结redhat9
 
Bypat博客出品-服务器运维集群方法总结3
Bypat博客出品-服务器运维集群方法总结3Bypat博客出品-服务器运维集群方法总结3
Bypat博客出品-服务器运维集群方法总结3redhat9
 

Similaire à Oracle dgha (20)

1, OCP - architecture intro
1, OCP - architecture intro1, OCP - architecture intro
1, OCP - architecture intro
 
1号店数据库架构
1号店数据库架构1号店数据库架构
1号店数据库架构
 
7, OCP - configure database for backup and recovery
7, OCP - configure database for backup and recovery7, OCP - configure database for backup and recovery
7, OCP - configure database for backup and recovery
 
Nosql三步曲
Nosql三步曲Nosql三步曲
Nosql三步曲
 
MySQL自动切换设计与实现
MySQL自动切换设计与实现MySQL自动切换设计与实现
MySQL自动切换设计与实现
 
開發環境建置
開發環境建置開發環境建置
開發環境建置
 
分布式系统缓存设计
分布式系统缓存设计分布式系统缓存设计
分布式系统缓存设计
 
分布式系统缓存设计
分布式系统缓存设计分布式系统缓存设计
分布式系统缓存设计
 
2, OCP - installing and creating a database
2, OCP - installing and creating a database2, OCP - installing and creating a database
2, OCP - installing and creating a database
 
Win dbg入门
Win dbg入门Win dbg入门
Win dbg入门
 
20111018 zhouchen share
20111018 zhouchen share20111018 zhouchen share
20111018 zhouchen share
 
4, OCP - oracle networking
4, OCP - oracle networking4, OCP - oracle networking
4, OCP - oracle networking
 
Chapter2
Chapter2  Chapter2
Chapter2
 
lua & ngx_lua 的介绍与应用
lua & ngx_lua 的介绍与应用lua & ngx_lua 的介绍与应用
lua & ngx_lua 的介绍与应用
 
Notes of jcip
Notes of jcipNotes of jcip
Notes of jcip
 
Exadata那点事
Exadata那点事Exadata那点事
Exadata那点事
 
Http 缓存
Http 缓存Http 缓存
Http 缓存
 
服务器基准测试-叶金荣@CYOU-20121130
服务器基准测试-叶金荣@CYOU-20121130服务器基准测试-叶金荣@CYOU-20121130
服务器基准测试-叶金荣@CYOU-20121130
 
Bypat博客出品-服务器运维集群方法总结
Bypat博客出品-服务器运维集群方法总结Bypat博客出品-服务器运维集群方法总结
Bypat博客出品-服务器运维集群方法总结
 
Bypat博客出品-服务器运维集群方法总结3
Bypat博客出品-服务器运维集群方法总结3Bypat博客出品-服务器运维集群方法总结3
Bypat博客出品-服务器运维集群方法总结3
 

Plus de Louis liu

Tcpcopy benchmark
Tcpcopy benchmarkTcpcopy benchmark
Tcpcopy benchmarkLouis liu
 
JK Log-Center architect
JK Log-Center architectJK Log-Center architect
JK Log-Center architectLouis liu
 
JKDB BACKUP Introduction
JKDB BACKUP IntroductionJKDB BACKUP Introduction
JKDB BACKUP IntroductionLouis liu
 
Infiniflash benchmark
Infiniflash benchmarkInfiniflash benchmark
Infiniflash benchmarkLouis liu
 
MySQL Tokudb engine benchmark
MySQL Tokudb engine benchmarkMySQL Tokudb engine benchmark
MySQL Tokudb engine benchmarkLouis liu
 
Nvmfs benchmark
Nvmfs benchmarkNvmfs benchmark
Nvmfs benchmarkLouis liu
 
MySQL 5.7 milestone
MySQL 5.7 milestoneMySQL 5.7 milestone
MySQL 5.7 milestoneLouis liu
 
MySQL Oslayer performace optimization
MySQL  Oslayer performace optimizationMySQL  Oslayer performace optimization
MySQL Oslayer performace optimizationLouis liu
 
MySQL async message subscription platform
MySQL async message subscription platformMySQL async message subscription platform
MySQL async message subscription platformLouis liu
 
HBASE Performane Test
HBASE Performane TestHBASE Performane Test
HBASE Performane TestLouis liu
 
Jkcn MySQLDB 架构
Jkcn MySQLDB 架构Jkcn MySQLDB 架构
Jkcn MySQLDB 架构Louis liu
 
基于Mongodb的压力评测工具 ycsb的一些概括
基于Mongodb的压力评测工具 ycsb的一些概括基于Mongodb的压力评测工具 ycsb的一些概括
基于Mongodb的压力评测工具 ycsb的一些概括Louis liu
 
My sql fabric ha and sharding solutions
My sql fabric ha and sharding solutionsMy sql fabric ha and sharding solutions
My sql fabric ha and sharding solutionsLouis liu
 
NetApp ef540 SSD Storage Test
NetApp ef540 SSD Storage TestNetApp ef540 SSD Storage Test
NetApp ef540 SSD Storage TestLouis liu
 
Exadata best practice on E-commerce area
Exadata best practice on E-commerce area Exadata best practice on E-commerce area
Exadata best practice on E-commerce area Louis liu
 
MySQL 5.5&5.6 new features summary
MySQL 5.5&5.6 new features summaryMySQL 5.5&5.6 new features summary
MySQL 5.5&5.6 new features summaryLouis liu
 
Ssd gc review
Ssd gc reviewSsd gc review
Ssd gc reviewLouis liu
 
Architecture of YHD
Architecture of YHDArchitecture of YHD
Architecture of YHDLouis liu
 
Think of oracle and mysql bind value
Think of oracle and mysql bind value Think of oracle and mysql bind value
Think of oracle and mysql bind value Louis liu
 

Plus de Louis liu (20)

Tcpcopy benchmark
Tcpcopy benchmarkTcpcopy benchmark
Tcpcopy benchmark
 
JK Log-Center architect
JK Log-Center architectJK Log-Center architect
JK Log-Center architect
 
Wdt Test
Wdt TestWdt Test
Wdt Test
 
JKDB BACKUP Introduction
JKDB BACKUP IntroductionJKDB BACKUP Introduction
JKDB BACKUP Introduction
 
Infiniflash benchmark
Infiniflash benchmarkInfiniflash benchmark
Infiniflash benchmark
 
MySQL Tokudb engine benchmark
MySQL Tokudb engine benchmarkMySQL Tokudb engine benchmark
MySQL Tokudb engine benchmark
 
Nvmfs benchmark
Nvmfs benchmarkNvmfs benchmark
Nvmfs benchmark
 
MySQL 5.7 milestone
MySQL 5.7 milestoneMySQL 5.7 milestone
MySQL 5.7 milestone
 
MySQL Oslayer performace optimization
MySQL  Oslayer performace optimizationMySQL  Oslayer performace optimization
MySQL Oslayer performace optimization
 
MySQL async message subscription platform
MySQL async message subscription platformMySQL async message subscription platform
MySQL async message subscription platform
 
HBASE Performane Test
HBASE Performane TestHBASE Performane Test
HBASE Performane Test
 
Jkcn MySQLDB 架构
Jkcn MySQLDB 架构Jkcn MySQLDB 架构
Jkcn MySQLDB 架构
 
基于Mongodb的压力评测工具 ycsb的一些概括
基于Mongodb的压力评测工具 ycsb的一些概括基于Mongodb的压力评测工具 ycsb的一些概括
基于Mongodb的压力评测工具 ycsb的一些概括
 
My sql fabric ha and sharding solutions
My sql fabric ha and sharding solutionsMy sql fabric ha and sharding solutions
My sql fabric ha and sharding solutions
 
NetApp ef540 SSD Storage Test
NetApp ef540 SSD Storage TestNetApp ef540 SSD Storage Test
NetApp ef540 SSD Storage Test
 
Exadata best practice on E-commerce area
Exadata best practice on E-commerce area Exadata best practice on E-commerce area
Exadata best practice on E-commerce area
 
MySQL 5.5&5.6 new features summary
MySQL 5.5&5.6 new features summaryMySQL 5.5&5.6 new features summary
MySQL 5.5&5.6 new features summary
 
Ssd gc review
Ssd gc reviewSsd gc review
Ssd gc review
 
Architecture of YHD
Architecture of YHDArchitecture of YHD
Architecture of YHD
 
Think of oracle and mysql bind value
Think of oracle and mysql bind value Think of oracle and mysql bind value
Think of oracle and mysql bind value
 

Oracle dgha

  • 2. 介绍 内容  DGHA 是什么?  现有的 DATAGUARD HA 方案  DGHA 的特性  DGHA 所需条件  DGHA :典型切换场景  DGHA :故障转移过程  DGHA :典型的时间点  DGHA : Failover 机制  Oracle RAC one node HA
  • 3. DGHA 是什么 ? • DGHA: 此脚本针对 oracle dataguard 设计,使用共享存储存放 redo,spfile 以及 controlfile 从而达到了切换数据零丢失。 • 目的 : 自动管理主库备库切换以便最少化当机时间 • 由一个的 Perl 主脚本和几个 shell 脚本组成 • 可采用集中管理模式,可以管理多套数据库集群。 • 原有主备库不需要安装额外的软件模块
  • 4. 现 有的 DATAGUARD HA 方案 • DataGuard Broker -- 只能 failover 到某个指定实例 -- 是 oracle 官方方案 • 共享存储模式 -- 需要共享一份数据,需要存储 -- 不好利用 PCIE 等高性能 IO 设备 • Dataguard 模式 -- 简单、不需要存储 -- 可能有数据丢失,可能会破坏整个集群 • 共享 redo/controlfile/spfile 模式 -- 需要小的存储 -- 数据零丢失,不会破坏集群
  • 5. DGHA 的特性 • 主服务器的自动监控和故障转移 • 切换数据零丢失 • Power off 功能,避免脑裂 • 详细的日志输出 • 短信和邮件报警功能
  • 6. DGHA 所需条件 • SSH 公钥验证 DGHA 管理节点通过 ssh 连接 oracle 服务器,进行验证和一些管理操作。 为了使这些过程自动化,推荐使用 SSH 公钥验证密码(也可以使用密码 模式进行) • 操作系统 目前只测试过 Linux 系统 • 主备库需要共享存储来存放 redo 、 controlfile 、 spfile • 依赖模块 Net::OpenSSH DBD::Oracle Log::Dispatch
  • 7. DGHA :典型切换场 景 • 监控整个集群:定期 check 主库 • 如果检测到 primary 故障,启动切换 • 检查备库是否达到要求 • 关闭主库,断电 • 用主库的 redo 等替换备库的, recover 备库,然后打开 • 发送 Email failover 报告 , 停止监控
  • 9. DGHA :故障转 移过 程 正常的检查过程: • 主备库为 DG , online redo , spfile 和 control 文件存放 于共享存储,存储对主备服务器都可见 • 更新主库心跳表,判断主库是否可用 • 如果主库是可 ssh 的,到主库本地登录检查( avoid listener problem or processes exceeded )
  • 10. DGHA :故障转 移过 程 切换过程: • 关闭原主库实例, Power off 原主库服务器 • 备份原备库的 online redo 和 control 文件;拷贝原主库的 online redo 和 control file , spfile • 备库应用原主库 online redo 恢复,保证数据零丢失 • 将备库切换到主库 , 其他备库同步新的主库
  • 11. DGHA :典型的时间 点 • 一般情况下完成整个过程需 3-5 分钟 • check 频率一般设置为 10 秒 • 检测主库一般为 1 分钟: 3 次 check+ 连接超时 +ssh 超时 • 主库关闭 + 备库检测 +power off 一般为 1-2 分钟 • 备库关闭 + 恢复 + 打开一般为 1-2 分钟
  • 12. DGHA : Failover 机制 主库检测频率 主库连续 3 次,每次间隔一定时间(比如 10s ) 主库检测类型 长连接 UPDATE HACHECK SET CHECK_TIME=SYSDATE 本地 UPDATE HACHECK2 SET CHECK_TIME=SYSDATE 备库 lag 检测 最大延迟 3 分钟 本地检测最大重试次数( for maximum number of processes (xxx) exceeded ) 最大次数 8 次 Power off 状态检测 最大次数 8 次 Ssh 超时时间 每次为 5 秒,重试 3 次
  • 13. Oracle RAC one node HA Oracle RAC One Node is integrated with Oracle Clusterware which monitors the health of the database and ensures database service availability. In the event of a failure, Oracle RAC One Node will detect the failure and either restart the failed database, or fail it over to another server.
  • 14. 参考资 料 1 http://search.cpan.org/~salva/Net-OpenSSH0.60/lib/Net/OpenSSH.pm 2 MHA mha4mysql-manager0.55samplesscriptspower_manager.pl 3 https://code.google.com/p/mysql-master-ha/