Forum Discussion
dennypayne
Mar 19, 2009Employee
Hi 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