Irule Help persistence
I currently wrote the below Irule to service requests coming into a VIP based off of HTTP::host and connection limits on the designated pools. Basically if the user requests www.test.gov then it checks to make sure that there are available members in the pool based off connection limits, if there is then he sends him there if not he gets a "Sorry Page". Same thing goes for the rest of the traffic that doesn't match www.test.gov, it checks to see if the default pool have availability.
My question is when connections start exceeding the limits and the "We're Sorry Page" starts getting displayed. It works as intented, however since the connections are based off of tcp connections, the user1 may get in the first time and get a page, but every other GET request he makes may not come back because it's over the limit again. How could I other buid persistence into the Irule or use persistence with my Irule so that say you have 100 connection limit, that the first 100 users sessions stay connected until they are complete. Instead of 200 users fighting over a 100 connections and they are all experiencing intermittency? Also if there are any pointers for cleaning this script up please let me know. I had to write this last night in the middle of a huge outage.