MHA属于DBA必须掌握的基本功

replication-manager 和 orchestrator  这2款软件是以后的趋势


代码仓库: https://github.com/signal18/replication-manager

官方文档:https://docs.signal18.io/installation/setup-instructions


如果照着官方文档编译出问题的话,可以看下我这里的步骤。



代码依赖于go环境,我们需要安装go1.8或以上的版本


yum install go git -y

export GOPATH=~/gocode && mkdir ~/gocode && cd ~/gocode

mkdir src/github.com/signal18/

cd src/github.com/signal18/

git clone https://github.com/signal18/replication-manager.git

cd replication-manager/

make osc    # 这里我们编译osc的就可以,会在  当前目录的 build/binaries/ 下生成个replication-manager-osc

# 当然make bin也行,make bin会生成4个文件(replication-manager-min  replication-manager-osc  replication-manager-pro  replication-manager-tst)