Forum Discussion
Ido_Katz_38061
Nimbostratus
Jun 22, 2010IRule Creation help
Hi Guys,
our marketing ask to to check if there is a possbility to create an IRule that said that 2% of the traffic that coming to specific virtual server will go a specfic pool.
F...
hoolio
Cirrostratus
Jul 12, 2011Hi Martin,
I think this is what Colin was suggesting:
when HTTP_REQUEST {
Save a random number between 0 and 1
set rand [expr { rand() }]
if { $rand < .90 } {
pool poolA
} elseif { $rand < .95 }{
pool poolB
} else {
pool poolC
}
}
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
