/ Zope / Apsis / Pound Mailing List / Archive / 2010 / 2010-01 / Source ip-Hashing method in load balancing.

[ << ] [ >> ]

[ Different timeouts for backend requests and ... ] [ =?utf-8?Q?[Abwesenheitsbenachrichtigung]_Re:_Re:_[... ]

Source ip-Hashing method in load balancing.
Raj Ganguly <rajugkgp(at)gmail.com>
2010-01-18 07:41:17 [ FULL ]
Hi All,
Is it possible to have source ip-hashing method for load balancing in pound
load balancer server.
My requirement is to a VIP with four instances of listening port.When a
request comes from a client (different ip-addresses is possible) it should
be routed to any one of the instance. Even for subsequent requests from the
same client it should be propagated to the same instance listening port.
If I am not clear let me know.
Thanks in advance.
-R
Attachments:  
text.html text/html 476 Bytes

Re: [Pound Mailing List] Source ip-Hashing method in load balancing.
Albert <pound(at)alacra.com>
2010-01-18 18:05:19 [ FULL ]
Yes, out of the "Session" types is IP.  This will hash an IP into a 
specific backend for the however long the TTL (time to live) is setup 
for the session.  Here's a sample (it goes within Service definition block):

#ip-binding for session for 5 minutes
Session
        Type    IP
        TTL     300
End

Raj Ganguly wrote:[...]
Attachments:  
text.html text/html 1597 Bytes

Sessions and disabled backends, (was: Source ip-Hashing method in load balancing)
Clinton Gormley <clint(at)traveljury.com>
2010-01-28 16:10:28 [ FULL ]
[...]

Speaking of which...

While using an earlier version of pound (2.4.2, I think), I initially
used sessions to send the user to the same server, not because it was
required by the app, but just so that if I'm in the process of updating
servers, the user doesn't see old_page -> new_page -> old_page.

I found that when I disabled a backend, the user would just get error
pages, they wouldn't be switched to a new backend.

Has this been fixed? Or is it not considered a bug?

thanks

clint

MailBoxer