count sessions to a web page and redirect if too high?
am quite new to irules, I have a client who is launching a large campaign and wishes to redirect to an alternate site if connections are higher than n but only to a certain page, eq example.com/pageinquestion. We must not redirect from other pages to this holding page as the holding page is specifically related to the campaign on that page.
The holding page would then instruct the client to retry every 30 seconds till they get a free connection. They currently have the webservers performing this in staging, the client would like to offload this functionality to the f5 (version 10.2.2).
Is this possible with an irule? Obviously we would need to be able to measure active connections and decrement the counter as a client disconnects, the site is currently set up with the one connect profile and a custom persistence profile of sticky source IP of 60 minutes. The loadbalancing method is currently set to round robin.
Thanks in advance,