Forum Discussion
Claes_16575
Nov 15, 2011Nimbostratus
Oh, this is exaclty what I'm looking for, but the above code is not working for me.
I'm running 10.2.1 473, and get this error in the LTM logfile:
- can't set "::clientcount(10.0.14.241)": variable isn't array while executing "set ::clientcount([IP::client_addr]) 1"
This iRule is meant to "slow start" our site after we had mainenance, to only let a few people warm up the caches and stuff on the app servers.
So, what I'm really looking for is a way to limit the number of unique visitors, and increase this value if needed. They should have full access to the site if they arrive and get's an "open slot" in the array, and if the array if full, we will present the maintenace page instead.
Any suggestions on an already developed and working iRule for this scenario?
Regards // C