常规配置中,使用单核稳定运行,开启多核模式后会出现偶发性 503,并且没有 X-Server
响应头信息。
global
daemon
# 开启多核出现部分 503
# nbproc 12
log 127.0.0.1 local0
defaults
log global
mode http
maxconn 1000000
timeout tunnel 3600s
timeout connect 3s
timeout client 60s
timeout server 60s
listen stats
bind :9000
mode http
stats enable
stats realm Haproxy\ Statistics
stats uri /haproxy_stats
stats auth admin:123
frontend im-proxy
log global
bind *:80
default_backend server
backend server
server web1 127.0.0.1:7002
http-response set-header X-Server web1