Forum Discussion
Kok_Yong_Cheon1
May 17, 2006Historic F5 Account
rediect when ssp tps license hit certain number
Hi,
I would like to achieve the following for LTM:
1) let say the LTM has a total of 1000 SSL TPS license
2) when the ssl tps license being utilized / hit till 950
3) would want the traffic to be directed to a maintenance page
Any idea/suggestion whether how to achieve the above.
any input/idea is much appreciated.
Thank You
- Deb_Allen_18Historic F5 AccountMaybe something like this?
when RULE_INIT { set ::currentTPS 0 } when CLIENTSSL_HANDSHAKE { set redirect_flag 0 set cur_time [clock seconds] if { $cur_time == $::last_time } { if { $::currentTPS > 950 } { set redirect_flag 1 } incr ::currentTPS return } else { set ::currentTPS 0 } set ::last_time $cur_time } when HTTP_REQUEST { if { $redirect_flag eq 1 }{ HTTP::redirect http://www.domain.com/sorry.html } }
- dimka___104021
Nimbostratus
Hi,
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects