码迷,mamicode.com
首页 > 其他好文 > 详细

Haproxy 主备配置

时间:2015-08-01 06:38:47      阅读:214      评论:0      收藏:0      [点我收藏+]

标签:haproxy 主备配置

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 主备配置

标签:haproxy 主备配置

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!