You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by nik600 <ni...@gmail.com> on 2015/05/15 10:31:03 UTC

[users@httpd] Proxy balancer, handle an http 503 status from a BalancerMember

Dear all

is possible to handle the specific http 503 status from a BalancerMember
and re-forward the request to another member?

Thanks to all in advance

-- 
/*************/
nik600
http://www.kumbe.it

Re: [users@httpd] Proxy balancer, handle an http 503 status from a BalancerMember

Posted by Yann Ylavic <yl...@gmail.com>.
My bad, I didn't figure out you were talking about 503s from the
backend (as opposed to eg. connect errors which are handled as
internal 503s).
AFAICT recovering from backend error is not reliably feasible, non
idempotent requests (eg. POSTs) cannot be re-sent by a proxy.

On Fri, May 15, 2015 at 11:53 AM, nik600 <ni...@gmail.com> wrote:
> hhmmm i'm not experiencing that.
>
> i've got a php script on the back end that send a 503 header:
>
> NODE1
> <?php
> header('HTTP/1.1 503 Service unavailable');
> echo "error";
> ?>
>
> NODE2
> <?php
> echo "ok";
> ?>
>
> But when i make requests on the cluster i get 50% of "error" and 50% of
> "ok".
>
>
>
> 2015-05-15 11:09 GMT+02:00 Yann Ylavic <yl...@gmail.com>:
>>
>> Hi,
>>
>> this is an implicit behaviour.
>>
>> Regards,
>> Yann.
>>
>> On Fri, May 15, 2015 at 10:31 AM, nik600 <ni...@gmail.com> wrote:
>> > Dear all
>> >
>> > is possible to handle the specific http 503 status from a BalancerMember
>> > and
>> > re-forward the request to another member?
>> >
>> > Thanks to all in advance
>> >
>> > --
>> > /*************/
>> > nik600
>> > http://www.kumbe.it
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
>
>
> --
> /*************/
> nik600
> http://www.kumbe.it

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Proxy balancer, handle an http 503 status from a BalancerMember

Posted by nik600 <ni...@gmail.com>.
hhmmm i'm not experiencing that.

i've got a php script on the back end that send a 503 header:

NODE1
<?php
header('HTTP/1.1 503 Service unavailable');
echo "error";
?>

NODE2
<?php
echo "ok";
?>

But when i make requests on the cluster i get 50% of "error" and 50% of
"ok".



2015-05-15 11:09 GMT+02:00 Yann Ylavic <yl...@gmail.com>:

> Hi,
>
> this is an implicit behaviour.
>
> Regards,
> Yann.
>
> On Fri, May 15, 2015 at 10:31 AM, nik600 <ni...@gmail.com> wrote:
> > Dear all
> >
> > is possible to handle the specific http 503 status from a BalancerMember
> and
> > re-forward the request to another member?
> >
> > Thanks to all in advance
> >
> > --
> > /*************/
> > nik600
> > http://www.kumbe.it
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 
/*************/
nik600
http://www.kumbe.it

Re: [users@httpd] Proxy balancer, handle an http 503 status from a BalancerMember

Posted by Yann Ylavic <yl...@gmail.com>.
Hi,

this is an implicit behaviour.

Regards,
Yann.

On Fri, May 15, 2015 at 10:31 AM, nik600 <ni...@gmail.com> wrote:
> Dear all
>
> is possible to handle the specific http 503 status from a BalancerMember and
> re-forward the request to another member?
>
> Thanks to all in advance
>
> --
> /*************/
> nik600
> http://www.kumbe.it

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org