Forum Discussion
tdk_51797
Mar 26, 2012Historic F5 Account
For the 50% case, you could optimise the rule as follows:
when HTTP_REQUEST {
set flag 0
Check the path
if { [HTTP::path] eq "/build/apps/medrec/jaml" }{
For 50% of traffic send a 502 response
if { $flag == 0 }{
HTTP::respond 502 content {html...}
set flag 1
}
else {
set flag 0
}
}
}