Thanks for info. We will try to upgrade to new version.
On 29/07/13 23:12, Cyril Bonté wrote:
Hi Grzegorz,
Le 29/07/2013 10:56, Grzegorz Leszczyński a écrit :
Anybody there?
On 12/07/13 13:19, Grzegorz Leszczyński wrote:
In our company we have such problem, that when haproxy discovers that
backend is dead - due to httpchk - it doesn't disconnect already
established keepAlive connections and is still sending requests via
these connections. Is this known problem? Is there is any solution for
this? Or maybe we are doing something wrong?
We use 1.4.19 version. And here is part of configuration:
backend back_im_alias
mode http
log global
option redispatch
option httplog
no option httpclose
option forwardfor
option httpchk GET /check-status HTTP/1.1
retries 3
From this configuration, you're using haproxy un tunnel mode, which
maintains the connection opened if HTTP keep-alive is used. You should
try with "option http-server-close" [1], which will allow keep-alive
between the client and haproxy, but will reopen a new connection for
each request between haproxy and a healthy backend server.
Another solution would be to upgrade to haproxy 1.5 and have a look to
"on-mark-down shutdown-sessions" [2]
[1]
http://cbonte.github.io/haproxy-dconv/configuration-1.4.html#option%20http-server-close
[2]
http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#on-marked-down
--
Grzegorz Leszczyński
Team Leader/Tech Lead Zespołu Serwerów Komunikatora
GG Network S.A.
Kamionkowska 45 03-812 Warszawa
tel: +48 22 4277935 fax: +48 22 4277425 mob: +48 693693391
http://www.gadu-gadu.pl gg:16068
Spółka zarejestrowana w Sądzie Rejonowym dla m. st. Warszawy, XIII
Wydział Gospodarczy KRS pod numerem 0000264575, NIP 867-19-48-977.
Kapitał zakładowy: 1 758 461,10 zł - wpłacony w całości.