Am 2017-07-20 14:18, schrieb Jarno Huuskonen:
Can you share how you've configured health checks in haproxy.cfg ?
backend site-back
balance roundrobin
mode http
option httpchk GET /healthcheck.htm HTTP/1.1\r\nHost:\
site.com\r\nConnection:\ close
http-check expect string server_up
http-check disable-on-404
cookie SERVERID insert indirect nocache
server SERVER1 ip1:80 check maxconn 3000 cookie s1
server SERVER2 ip2:80 check maxconn 3000 cookie s2
And can you show curl -v output of the BOM response and
(lb2-beeline-prod </root>) 0 # curl -v -H "Host: site.com"
http://ip1:80//Healthcheck_broken.htm
* Trying ip1...
* TCP_NODELAY set
* Connected to ip1 (ip1) port 80 (#0)
GET //Healthcheck_broken.htm HTTP/1.1
Host: site.com
User-Agent: curl/7.50.3
Accept: */*
< HTTP/1.1 200 OK
< Content-Type: text/html
< Last-Modified: Thu, 20 Jul 2017 15:18:51 GMT
< Accept-Ranges: bytes
< ETag: "4d832b7e6b1d31:0"
< Server: Microsoft-IIS/8.5
< Date: Thu, 20 Jul 2017 15:27:08 GMT
< Content-Length: 24
<
��server_up
* Curl_http_done: called premature == 0
* Connection #0 to host ip1 left intact
od -c bomfile.
0000000 377 376 s \0 e \0 r \0 v \0 e \0 r \0 _ \0
0000020 u \0 p \0 \r \0 \n \0
0000030