【Mysql】mysql-proxy讀寫分離
mark 明天看
http://blog.csdn.net/yueliangdao0608/article/details/2398655
以配置檔案的方式啟動
更多高階用法參考http://mp.weixin.qq.com/s/A5SnwL4Gzin6Sz2weu9Bzw
http://blog.csdn.net/yueliangdao0608/article/details/2398655
以配置檔案的方式啟動
-
[root@host-192-168-1-56 mysql-proxy]# ls
- bin include lib libexec licenses mysql-proxy.conf mysql-proxy.log mysql-proxy.pid share
[root@host-192-168-1-56 mysql-proxy]# more mysql-proxy.conf
[mysql-proxy]
daemon=true
pid-file=/usr/local/mysql-proxy/mysql-proxy.pid
log-file=/usr/local/mysql-proxy/mysql-proxy.log
log-level=debug
LUA_PATH=/usr/local/mysql-proxy/share/doc/mysql-proxy
proxy-lua-script=/usr/local/mysql-proxy/share/doc/mysql-proxy/rw-splitting.lua
proxy-address=127.0.0.1:4040
proxy-read-only-backend-addresses=192.168.1.56:3307,192.168.1.6.3307
proxy-backend-addresses=192.168.1.6:3307
keepalive=true
proxy-skip-profiling=true
admin-address=:4042
admin-lua-script=/usr/local/mysql-proxy/share/doc/mysql-proxy/admin-sql.lua
admin-username=admin
admin-password=admin
plugins=proxy,admin
[root@host-192-168-1-56 mysql-proxy]# /usr/local/mysql-proxy/bin/mysql-proxy --defaults-file=/usr/local/mysql-proxy/mysql-proxy.conf
[mysql-proxy]
daemon=true
pid-file=/usr/local/mysql-proxy/mysql-proxy.pid
log-file=/usr/local/mysql-proxy/mysql-proxy.log
log-level=debug
LUA_PATH=/usr/local/mysql-proxy/share/doc/mysql-proxy
proxy-lua-script=/usr/local/mysql-proxy/share/doc/mysql-proxy/rw-splitting.lua
proxy-address=127.0.0.1:4040
proxy-read-only-backend-addresses=192.168.1.56:3307,192.168.1.6.3307
proxy-backend-addresses=192.168.1.6:3307
keepalive=true
proxy-skip-profiling=true
admin-address=:4042
admin-lua-script=/usr/local/mysql-proxy/share/doc/mysql-proxy/admin-sql.lua
admin-username=admin
admin-password=admin
plugins=proxy,admin
[root@host-192-168-1-56 mysql-proxy]# /usr/local/mysql-proxy/bin/mysql-proxy --defaults-file=/usr/local/mysql-proxy/mysql-proxy.conf
更多高階用法參考http://mp.weixin.qq.com/s/A5SnwL4Gzin6Sz2weu9Bzw
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29096438/viewspace-2050922/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- mysql-proxy實現讀寫分離MySql
- MySQL Amoeba讀寫分離MySql
- Amoeba for mysql讀寫分離MySql
- MySQL讀寫分離AtlasMySql
- MySQL + Atlas --- 部署讀寫分離MySql
- Amoeba for MySQL讀寫分離配置MySql
- mysql讀寫分離(PHP類)MySqlPHP
- ProxySQL實現MySQL讀寫分離MySql
- MySQL 讀寫分離的好處MySql
- mysql優化之讀寫分離MySql優化
- 探究MySQL MGR的讀寫分離MySql
- Amoeba 實現 MySQL 讀寫分離MySql
- mysql讀寫分離Amoeba的部署MySql
- MySQL cetus 中介軟體 讀寫分離MySql
- MYSQL 主從 + ATLAS 讀寫分離 搭建MySql
- 配置\清除 MySQL 主從 讀寫分離MySql
- Mysql之讀寫分離架構-AtlasMySql架構
- Mysql 高可用(MHA)-讀寫分離(Atlas)MySql
- MySQL主從複製讀寫分離MySql
- Amoeba+Mysql 實現讀寫分離MySql
- MySQL 讀寫分離介紹及搭建MySql
- mysql讀寫分離的最佳實踐MySql
- MySQL 官宣:支援讀寫分離了!!MySql
- docker+atlas+mysql實現讀寫分離DockerMySql
- MySQL 中讀寫分離資料延遲MySql
- mysql讀寫分離實戰準備一MySql
- haproxy+keepalived+mycat+mysql (讀寫分離)MySql
- MySQL主從複製與讀寫分離MySql
- [Mysql]主從複製和讀寫分離MySql
- Mysql讀寫分離方案-MySQL Proxy環境部署記錄MySql
- mysql-proxy+keepalived對mysql做讀寫分離MySql
- 搭建MySQL主從實現Django讀寫分離MySqlDjango
- Mysql-主從複製與讀寫分離MySql
- Mysql讀寫分離方案-Amoeba環境部署記錄MySql
- ProxySQL實現Mysql讀寫分離 - 部署手冊MySql
- MySQL 中介軟體Atlas 實現讀寫分離MySql
- Redis的讀寫分離Redis
- Laravel讀寫分離原理Laravel