I pieced together an irule to meet my needs to allow each node in a pool to get to 1000 connections (set on the pools themselves) then when there is no node available (LB_FAILED) the F5 serves up a webpage with the html code put in the irule.
Before I resorted to an irule, I tried using the priority group method which in theory worked… however we had many complaints of customers getting sent to the lower priority group w/ a splash page when the higher priority group was not full. I had evidence of this in stats & opened a case with F5 which never actually got resolved & my rep suggested I use an irule instead.
Here is my current iRule:
when RULE_INIT {
Set an HTML response to sent to clients who make a request while the VIP is over the max connection count
set ::html_content “Insert busy splash page html content here”
}
when LB_FAILED {
HTTP::respond 200 content $::html_content
}
As a work around I’ve doubled the allowed connection limits in the pools so the iRule will allow it to get to the actual limits I want, however I don’t want it to all of a sudden start allowing the entire 2000 connections in on 1 node. Other than that, the rule works amazing & haven’t had any other customer complaints. Any help would be appreciated!