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
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)