What happens when perlbal reverse proxy backend server dies?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Perlbal > What happens when perlbal reverse proxy backend server dies?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    What happens when perlbal reverse proxy backend server dies?  
Can Sar


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-31-07 12:11 AM

Hi,

I have perlbal set up as a reverse proxy to load balance between two
instances of Apache. When one of the machines is taken offline/dies/
etc. it seems that Perlbal becomes far slower at answering even a
single request (no other load on the slower), and that load time goes
from 1 second to 6 seconds or so. It seems to me that it tries to
connect to the machine, eventually times out and then goes to the
other machine but never marks the machine as down or anything else.
Is this the expected behavior?

I would ideally like it to detect that the machine is down, not give
requests to it and then eventually probe if the machine is back up
after a few minutes or so. I guess having to manually re-add the
machine after failure would also be ok.

I've tried to find documentation on the managment interface but
haven't had any luck and the help command only lists commands without
explaining their syntax...

Here's my config file:

CREATE POOL apache
SET nodefile = /etc/perlbal/nodelist.dat

My CREATE SERVICE dynamic
SET listen = 0.0.0.0:80
SET role = reverse_proxy
SET pool = apache
SET persist_backend = on
SET persist_client = on
ENABLE dynamic

Thanks!
Can Sar






[ Post a follow-up to this message ]



    Re: What happens when perlbal reverse proxy backend server dies?  
Todd Lipcon


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-31-07 12:11 AM

Hi Can,

Try adding the following to your reverse_proxy:

SET verify_backend =  on

Hope that helps

-Todd

On Thu, 30 Aug 2007, Can Sar wrote:

> Hi,
>
> I have perlbal set up as a reverse proxy to load balance between two
> instances of Apache. When one of the machines is taken offline/dies/etc. i
t
> seems that Perlbal becomes far slower at answering even a single request (
no
> other load on the slower), and that load time goes from 1 second to 6 seco
nds
> or so. It seems to me that it tries to connect to the machine, eventually
> times out and then goes to the other machine but never marks the machine a
s
> down or anything else. Is this the expected behavior?
>
> I would ideally like it to detect that the machine is down, not give reque
sts
> to it and then eventually probe if the machine is back up after a few minu
tes
> or so. I guess having to manually re-add the machine after failure would a
lso
> be ok.
>
> I've tried to find documentation on the managment interface but haven't ha
d
> any luck and the help command only lists commands without explaining their
> syntax...
>
> Here's my config file:
>
> CREATE POOL apache
> SET nodefile = /etc/perlbal/nodelist.dat
>
> My CREATE SERVICE dynamic
> SET listen = 0.0.0.0:80
> SET role = reverse_proxy
> SET pool = apache
> SET persist_backend = on
> SET persist_client = on
> ENABLE dynamic
>
> Thanks!
> Can Sar






[ Post a follow-up to this message ]



    Re: What happens when perlbal reverse proxy backend server dies?  
Can Sar


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-31-07 12:11 AM

Thanks! That fixed it. In general though, is there any documentation
on the management interface?

Best,
Can Sar

On Aug 30, 2007, at 1:22 PM, Todd Lipcon wrote:
[vbcol=seagreen]
> Hi Can,
>
> Try adding the following to your reverse_proxy:
>
>   SET verify_backend =  on
>
> Hope that helps
>
> -Todd
>
> On Thu, 30 Aug 2007, Can Sar wrote:
> 







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:42 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register