Forum Discussion
sojourner9_8636
Nimbostratus
Jul 17, 2008Persistant 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?
- hoolio
Cirrostratus
I think it would be easier if you configured round robin or a load balancing algorithm based on least connections and then specified a persistence profile like source address or cookie insert. This would ensure clients with an valid persistence record would be persisted to the previously selected pool member and new clients would be load balanced to a pool member. - sojourner9_8636
Nimbostratus
I looked some of the persistence profiles, like "source address" and they default to a 3-minute timeout. Which I take to mean if the user is idle for longer than 3-minutes, the next time they come in, they will get rebalanced. - hoolio
Cirrostratus
You can set the timeout to zero to use a session cookie for cookie insert persistence. No memory is used on the BIG-IP to store the persistence info. The client stores the persistence record locally.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects