Perlbal - problem with dynamic pools

This is Interesting: Free IT Magazines  
Home > Archive > Perlbal > October 2007 > problem with dynamic pools





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author problem with dynamic pools
Robby Dermody

2007-10-12, 1:11 pm

First off, I'd like to thank Jonty and Todd for posting their request_url
proxy plugins. That was a great help!

I seem to have a problem with using dynamic pools under 1.59. To get the
simplest testcase, I have a reverse_proxy set up that uses them, like so:

CREATE POOL mypool
#POOL mypool ADD 10.1.14.23:8080
SET nodefile = /var/lib/server-list.dat
SET balance_method = random

CREATE SERVICE my_svc
SET listen = 0.0.0.0:60002
SET role = reverse_proxy
SET pool = mypool
SET enable_reproxy = false
SET persist_backend = true
SET verify_backend = false #may not work with lighttpd
ENABLE my_svc

In the /var/lib/server-list.dat file we have:
10.1.14.23:8080

Now I can start perlbal and access 60002 fine and it works, the resultant
webpage shows fine. I can even stick a second 10.1.14.23 server entry in
there and that seems to work. (From the source code it looks like it's
reloading the file every 3 seconds.) And, when I remove the server entry, my
requests start to time out, as would be expected. My problem seems to be
that when I add a server entry back in, the requests still time out. Things
don't work again.

I may be doing something wrong here or not understanding things. Any
insight?

Robby


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com