haproxy for mysql slavers load balance.
2013-01-21 13:33
148 查看
haproxy.conf
and use command (sudo /usr/local/haproxy/sbin/haproxy -f /usr/local/haproxy/conf/haproxy.conf) to start haproxy
global maxconn 4096 daemon pidfile /usr/local/haproxy/haproxy.pid user haproxy group haproxy defaults log global mode http option httplog option dontlognull log 127.0.0.1 local0 retries 3 option redispatch maxconn 2000 contimeout 5000 clitimeout 5000 srvtimeout 5000 listen admin_stats 10.197.60.137:81 mode http stats uri /dbs stats realm Global\ statistics stats auth test:123456 listen proxy-mysql 0.0.0.0:20000 mode tcp option tcplog balance roundrobin option httpchk OPTIONS *HTTP/1.1\r\nHOST:\ www server db01 10.197.60.137:3307 weight 1 inter 1s rise 2 fall 2 server db02 10.197.60.137:3308 weight 1 inter 1s rise 2 fall 2 option tcpka
and use command (sudo /usr/local/haproxy/sbin/haproxy -f /usr/local/haproxy/conf/haproxy.conf) to start haproxy
相关文章推荐
- LVS+Nginx for Load Balance
- CakePHP: tips on ssl, mysql load balance, master/slave, xhprof benchmark tool
- Installing haproxy load balancing for http and https--转载
- How to manage and balance “Huge Data Load” for Big Kafka Clusters---reference
- 使用TOMCAT5.5连接池连接mysql(解决Cannot create JDBC driver of class '' for connect URL 'null' 及can not load org.gjt.mm.mysql.Driver)
- Highly Available L7 Load Balancing for Exchange 2013 with HAProxy – Par
- install mongrel for rails and apache http for load balance
- nginx as Database Load Balancer for MySQL or MariaDB Galera Cluster
- 【架构】How To Use HAProxy to Set Up MySQL Load Balancing
- trac 报错:Cannot load Python bindings for MySQL
- Use HAProxy to load balance 300k concurrent tcp socket connections: Port Exhaustion, Keep-alive and
- Installing haproxy load balancing for http and https--转载
- Attempting to reserve 1 items for resource loadbalance. Total usage: 10; quota limit: 10; headroom:0
- sql点滴37—mysql中的错误Data too long for column '' at row 1
- mysql Packet for query is too large (1185 > 1024)异常
- hadoop2.x部署警告:Unable to load native-hadoop library for your platform
- 安装MYSQL出现checking for termcap functions library
- 数据库 Navicat for MySQL 换种思维解决插入同时更新数据
- cannotcreate windows service for mysql.error:0
- MySQL 修改报错 You can't specify target table 'tb_trade' for update in FROM clause