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

