首页 > 其他 > 详细

Haproxy 主备配置

时间:2015-08-01 06:36:16      阅读:405      评论:0      收藏:0      [点我收藏+]
global
    maxconn 100000
    log /dev/log local0 notice


defaults
    mode tcp
    log global

    option redispatch
    retries 3

    timeout connect 5s
    timeout client 1210s
    timeout server 1210s


listen stats :8642
    mode http
    stats enable
    stats uri /
    stats auth admin:admin

frontend bbs
  bind :28000
  default_backend bbs

backend bbs
  balance leastconn
  server bbs-app_9801 bbs-server-1:9801 weight 1 maxconn 4096 check inter 1000
  server bbs-app_9801 bbs-server-2:9801 weight 1 maxconn 4096 check inter 1000

  server bbs-mysql-master_3306 bbs-mysql-server:3306  check inter 1000 backup


Haproxy 主备配置

原文:http://rickyhui.blog.51cto.com/10570875/1680686

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!