Forum Discussion
Irule question
Is it possible to write an Irule that can redirect certain percent of traffic to different pools?
thanks
Si
3 Replies
- P_K
Altostratus
I don't think so. It only directs traffic depending on certain conditions like URI, CLient IP etc..
You can distribute traffic among different servers by configuring ratio based load balancing method or something similar.
- eey0re
Cirrostratus
Yes - you would either need a global counter (probably using a table - look at the
function) to send every nth request to a different pool, or use a random number generator like this example from the codeshare.class - Amresh008
Nimbostratus
I am not able to think of the possible scenario when you would actually need this to be done.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
