小编BnW*_*BnW的帖子

HAProxy随机HTTP 503错误

我们设置了3台服务器:

  • 服务器A使用Nginx + HAproxy来执行负载平衡
  • 后端服务器B.
  • 后端服务器C.

这是我们的/etc/haproxy/haproxy.cfg:

global
        log /dev/log   local0
        log 127.0.0.1   local1 notice
        maxconn 40096
        user haproxy
        group haproxy
        daemon

defaults
        log     global
        mode    http
        option  httplog
        option  dontlognull
        retries 3
        option redispatch
        maxconn 2000
        contimeout      50000
        clitimeout      50000
        srvtimeout      50000
                stats enable
                stats uri /lb?stats
                stats realm Haproxy\ Statistics
                stats auth admin:admin
listen statslb :5054 # choose different names for the 2 nodes
        mode http
        stats enable
        stats hide-version
        stats realm Haproxy\ Statistics
        stats uri …
Run Code Online (Sandbox Code Playgroud)

haproxy

15
推荐指数
3
解决办法
2万
查看次数

标签 统计

haproxy ×1