DCO_21192
Nov 30, 2007Nimbostratus
Irule to LB traffic based on least connections
I am looking information on how I can build an iRule to load balance traffic based on leat connections. Here are the dirty details.
We have an application that does not keep state in a database, the session state is kept at the application layer. There are 5 Pools of Web servers and each pool is tied to specific application servers. Because of this we have built an iRule that issues a persistance cookie that will direct a user to the same pool in the event of a disconnect during their session. In the same iRule if a new connection (connection without a cookie) is made it is directed to the default pool. The results is an imbalance of connections to specific pools. I must add that the GTM is using round robin to balance traffic between two locations, and an added problem are the mega proxy DNS cache issues we are seeing. There is much more to the design than I am relating here, the bottom line is can we use information already in the GTM/LTM to load balance traffic based on least connections in an iRule no matter what the DNS resolution was from the GTM.