Re: realtime switch to another backend if got 5xx error?

From: Jean-Baptiste Quenot <>
Date: Sun, 31 May 2009 21:42:53 +0200

2009/5/21 Dawid Sieradzki / Gadu-Gadu S.A. <>:
> A. haproxy recived request from http_client
> B. haproxy sent request from http_client to backend1
> C. backend1 said 500 internal server error
> I want: :-)
> D. haproxy sent request from_http to backend2 (or backup backend or another
> one, or one more time to backend1)

As far as the haproxy documentation says, a request will not be issued more than once to a backend server. This is to avoid re-submitting a potentially critical transaction. Haproxy retries only if the TCP connection could not be opened at all (Connection refused).


Jean-Baptiste Quenot
Received on 2009/05/31 21:42

This archive was generated by hypermail 2.2.0 : 2009/05/31 21:45 CEST