Forum Discussion
kimjim_51067
Nimbostratus
Mar 20, 2012I need to create an irule that will reject a specified percnetage of traffic.
Can some one help me in creating an irule that will reject percentage (ex- 50%) of the traffic .
I need this because when there is a heavy traffic my systems are unable to handle ,so i want to a...
hoolio
Cirrostratus
Mar 20, 2012Hi,
How about something like this?
when HTTP_REQUEST {
Check the path
if { [HTTP::path] eq "/build/apps/medrec/jaml" }{
For 50% of traffic send a 502 response
if { rand() > .50 }{
HTTP::respond 502 content {html...}
}
}
}
Aaron
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