下面给出的是我的haproxy.xfg文件。 HAPRoxy版本1.4.18,2011/09/16发布没有打电话给heatbeat.html。
尽pipeserver1没有heartbeat.html,但它正在向两个服务器发送stream量。
global log 127.0.0.1 local2 chroot /var/lib/haproxy pidfile /var/run/haproxy.pid maxconn 4000 #user haproxy #group haproxy daemon defaults mode http log global option httplog option dontlognull retries 1 timeout http-request 300s timeout queue 1m timeout connect 10s timeout client 1m timeout server 1m timeout http-keep-alive 10s timeout check 10s maxconn 3000 listen http_proxy 0.0.0.0:8980 mode http cookie JSESSIONID prefix balance roundrobin option httpchk HEAD /heartbeat/heartbeat.html HTTP/1.0 server app11 10.xx11:8080 cookie check inter 1000 fall 1 rise 1 server app13 10.xx12:8080 cookie check inter 1000 fall 1 rise 1
您需要命名您的cookie: cookie name
。 目前它被命名为“检查”,导致没有检查。