sojourner9_8636
Jul 17, 2008Nimbostratus
Persistant balancing based on source IP
I have a pool with 2 servers in it.
The pool is used mainly for HTTP traffic. But, because of some application oddness - users need to always go to the same server in the pool if it is up. And, they need to be able to return to that original server minutes or even hours later in the day.
To my mind, what would be easiest would be to do some sort of hash on the source IP address. Or something like "if the last octet is odd" go to server 1 if it is up and server 2 if no.
Anyone have some suggestions on the best way to do this?