Thanks. This looks promising, I have one question and one problem though :)

1) What did I do to deserv "pound: MONITOR: worker exited normally 127, restarting..." on all request? I don't seem to get anything back either, it just closes immediately.

2) Will the services that holds the URL requirement store information about the cookies for future request? I would like it to go the same machine on subsequent calls even without the host=host_1.

Thanks.

On Wed, Oct 15, 2008 at 14:42, Albert <pound@alacra.com> wrote:
Yes, we do something similar here.  Create a new "Service" directives, using "URL" directive to catch "host=host_1". It'll look something like this:
Service
  URL ".*host=host_1*"
  BackEnd
     Address host_1
     Port   80
  End
End

Make sure this Service is declared before your session cookie and round-robin Service directives.



Andreas Andersson wrote:
Hi!

I've been running pound to do simple load balancing/failover between 3
machines using round robin and session tracking via cookies. Now I have new
need. I need to be able to send an additional request parameter (ie
myPage.php?host=host_1) and have pound direct me to host_1 instead of the
one in the session (or instead of the next one in the case of no cookie).

Is that possible using pound?

Psedo code:
if host_parameter
 use host_parameter
else if session cookie
 use session cookie
else
 use default / round robin

Thanks

 


--
To unsubscribe send an email with subject unsubscribe to pound@apsis.ch.
Please contact roseg@apsis.ch for questions.



--
Read my blog @ http://www.raven.nu/blog