Re: retry new backend on http errors?

2015-10-02 Thread Bjorn Blomqvist
JCM writes: > > On 25 September 2014 14:47, Klavs Klavsen 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

Re: retry new backend on http errors?

2014-10-02 Thread Willy Tarreau
On Fri, Sep 26, 2014 at 12:57:18PM +0200, Klavs Klavsen wrote: > Being able to handle if some server fubars itself (in my case one server > suddenly had a stale NFS handle) - or if I f.ex. do automatic upgrades.. > it's very nice to just know that while the webserver (sometimes a > tomcat - which

Re: retry new backend on http errors?

2014-09-30 Thread Pavlos Parissis
On 26/09/2014 11:46 πμ, JCM wrote: > On 25 September 2014 14:47, Klavs Klavsen 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

Re: retry new backend on http errors?

2014-09-26 Thread Klavs Klavsen
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 wrote: >> Any way to make haproxy retry requests with certain http response codes >> X tim

Re: retry new backend on http errors?

2014-09-26 Thread Klavs Klavsen
JCM said the following on 09/26/2014 11:46 AM: > On 25 September 2014 14:47, Klavs Klavsen 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

Re: retry new backend on http errors?

2014-09-26 Thread JCM
On 25 September 2014 14:47, Klavs Klavsen 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

retry new backend on http errors?

2014-09-25 Thread Klavs Klavsen
Hi guys, I just had an incident with a stale nfs handle - where server suddenly returned 500 errors for some requests (the stuff lying on that nfs :) In this setup, I use haproxy to control the backends, and thus I'd like it to retry requests giving 50* errors - on "other backends" - and only ret

retry new backend on http errors?

2014-09-04 Thread Klavs Klavsen
Hi guys, I just had an incident with a stale nfs handle - where server suddenly returned 500 errors for some requests (the stuff lying on that nfs :) In this setup, I use haproxy to control the backends, and thus I'd like it to retry requests giving 50* errors on "all other backends" - and only r