I have an ICAP server backend with servers that each listen on different
ports, can anyone offer some advice on how to configure health checks for
it? I am currently using basic but that really doesn't help if the service
is not responding.

Here is my haproxy config for the backend:

backend HTPL_CONT_FILTER_tcp_ipvANY
mode tcp
balance roundrobin
timeout connect 50000
timeout server 50000
retries 3
server HTPL-WEB-01_10.1.4.153 10.1.4.153:1344 check inter 5000  weight 200
maxconn 200 fastinter 1000 fall 5
server HTPL-WEB-02_10.1.4.154 10.1.4.154:1344 check inter 5000  weight 200
maxconn 200 fastinter 1000 fall 5
server HTPL-WEB-02_10.1.4.155_01 10.1.4.155:8102 check inter 5000  weight
200 maxconn 200 fastinter 1000 fall 5
server HTPL-WEB-02_10.1.4.155_02 10.1.4.155:8202 check inter 5000  weight
200 maxconn 200 fastinter 1000 fall 5

If I use curl and get the headers from a healthy response here is what is
returned:

curl -v http://10.1.4.155:8202/

* Hostname was NOT found in DNS cache
*   Trying 10.1.4.105...
* Connected to 10.1.4.105 (10.1.4.105) port 8181 (#0)
> GET http://10.1.4.155:8202/ HTTP/1.1
> User-Agent: curl/7.35.0
> Host: 10.1.4.155:8202
> Accept: */*
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 200 OK
* Server squid/3.4.10 is not blacklisted
< Server: squid/3.4.10
< Mime-Version: 1.0
< Date: Sun, 18 Oct 2015 23:49:22 GMT
< X-Transformed-From: HTTP/0.9
< X-Cache: MISS from HTPL-PROXY-02
< X-Cache-Lookup: MISS from HTPL-PROXY-02:3128
< Transfer-Encoding: chunked
< Via: 1.1 HTPL-PROXY-02 (squid/3.4.10)
<
ICAP/1.0 400 Protocol Error
ISTAG: "5BDEEEA9-12E4-2"
Service: Diladele Web Safety 4.2.0.CBF4
Connection: close
Encapsulated: resp-body=0

ICAP Protocol error: icap_header - unknown ICAP method found
* Connection #0 to host 10.1.4.105 left intact


TIA...

Reply via email to