Chris_Miller
Jul 22, 2010Altostratus
Least Connections using Available App Instances
Let's assume I have 2 web servers in a pool, Server A and Server B. Server A sends traffic to App Servers A, B, and C. Server B sends traffic to App Servers D, E, and F.
LTM can query the health of App Servers A-F. With the idea of somehow using the "active_members" command for this task, I've created "pool_app_A" which contains App servers A-C and "pool_app_B" which contains App servers D-F.
I basically want to use Least Connections for our pool but if an App server is down, I want to use more of a ratio that represents it.
I'm trying to think of the optimal way to do this:
when HTTP_REQUEST {
set app_A [active_members pool pool_app_A]
set app_B [active_members pool pool_app_B]
Now, I basically need to divide "app_A" by 3 and "app_B" by 3 to represent App health for each server in the pool. If 1 of the apps is down in pool app_A for instance, we'd want to send it less traffic.