Forum Discussion
Steve_Brown_882
Feb 26, 2011Historic F5 Account
Hi the way I read your problem you could continue to use 1 virtual server and just apply an irule similar to the one below. This would send your servers to one specific proxy unless it was down and continue load balance all of your users.
when CLIENT_ACCEPTED {
Check to see if the IP matches an one in a group and that the member is up. before sending it directly to that member.
if { [class match [IP::client_addr] equals "ServerGroup" ] and [[LB::status pool Pool1 member 10.1.2.3 80] ne "down" }] {
pool Pool1 member 10.1.2.3 80]
Check to see if the IP matches an one in a group and that the member is up. before sending it directly to that member.
} elseif [class match [IP::client_addr] equals "ServerGroup" ] and [[LB::status pool Pool1 member 10.1.2.4 80] ne "down" }] {
pool Pool1 member 10.1.2.4 80]
Default to load balancing all users
} else {
pool Pool1
}
}