Forum Discussion
Si_Tran_89480
Nimbostratus
Jul 12, 2017Irule question
Is it possible to write an Irule that can redirect certain percent of traffic to different pools?
thanks
Si
- 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.
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