标签:mysq pwd plt from lock 读写 安装 lease xxxx
Atlas做mysql读写分离:Atlas奇虎360的一个开源中间代理,是在mysql-proxy 0.8.2的基础上进行了优化,增加一些新的功能特性。
安装路径为/usr/local/mysql-proxy
admin-username = ming
admin-password = xxxxxx
proxy-backend-addresses = 10.0.1.3:3306
proxy-read-only-backend-addresses = 10.0.1.4:3306@1,10.0.1.5:3306@1
pwds = ming:QeoyfAql8w4a8s/oWZlMvQ==
proxy-address = 10.0.1.2:1234
admin-address = 10.0.1.2:2345
#client-ips = 127.0.0.1, 192.168.1 (设置允许连接的ip或网段,不启用就是允许所有)
:wq
select * from backends;
验证:
只读:
写入:
标签:mysq pwd plt from lock 读写 安装 lease xxxx
原文地址:https://blog.51cto.com/yangzhiming/2473655