ohh- and if I were concerned about that.. one could just make it so one haproxy would only retry GETs.. not POSTS..
JCM said the following on 09/26/2014 11:46 AM: > On 25 September 2014 14:47, Klavs Klavsen <[email protected]> wrote: >> Any way to make haproxy retry requests with certain http response codes >> X times (or just until all backends have been tried) ? > > Nope. You really don't want to do this. And I'd be sad if the devs > added anything in to HAProxy to enable this. > > You don't know how far through a potentially world-changing operation > the backend managed to get before it threw its error. Did it rollback > correctly? Nothing generic (as HAProxy as middleware is) can figure > this out, so you need to present the error to the consumer and get > them to decide if they want to retry the request. > > The ability of Varnish (and Nginx for that matter) to do this is an > anti-feature, IMHO. > > Jonathan > -- Regards, Klavs Klavsen, GSEC - [email protected] - http://www.vsen.dk - Tlf. 61281200 "Those who do not understand Unix are condemned to reinvent it, poorly." --Henry Spencer

