Forum Discussion
arun_parthas_10
Nimbostratus
Mar 18, 2009Need help with writing an Irule
Hi
I have a situation where I have 4 clients hitting a VIP with two servers behind..
I am having a Least Connection ( member ) as LB method and Persistence set for 4 hours.. the ...
dennypayne
Employee
Mar 19, 2009Hi Arun,
I would say the easiest solution is to just use Round Robin with persistence. That should result in more even distribution.
You could also do this without an iRule if you just create 2 pools, one with server 1 having more priority, and the other with server 2 having priority. Then use 2 vips pointing to those respective pools, one for clients 1 and 2, the other for clients 3 and 4.
Or you could use a rule to select between those 2 pools based on client IP address, but it seems that you're artificially limiting yourself if you do it that way.
Something like:
when CLIENT_ACCEPTED {
if { ([IP::addr [IP::client_addr] equals x.x.x.x) || ([IP::addr [IP::client_addr] equals y.y.y.y)
pool pool1
} else {
pool pool2
}
}
(Not syntax checked...)
Denny
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