Persistence
I have a pool of 8 tomcat servers that connect to a group of 2 downstream application servers. I use destination address persistence so that it doesn't matter which server and the only cause of a failover is that the "active" server fails. The requirement has changed slightly so we need 2 groups of 4 tomcat servers each connecting to one of the application servers and only failing over when the preferred application server for that group fails. I've used data-groups to implement this in an irule
if {( [class match [IP::client_addr] equals datagroup1] ) && ([active_members pool] > 1 ) } {
node poolmember1 8990
}elseif ...
The issue is that when the preferred application server recovers, irule causes the tomcat servers to force their way back to the preferred server which causes instability for users. The preferred solution is that the connections remain until there is a failure. Any ideas would be much appreciated