Forum Discussion
Jalle_197671
Nimbostratus
Jun 19, 2017Set cookie in 10% of traffic
Hi,
I'm looking for a way to set a cookie on 10% of my web traffic.
How can it be implemented in an irule?
Thanks!
Daniel_W_
Cirrus
Jun 23, 2017This example should help you: https://devcentral.f5.com/s/articles/ratio-load-balancing-using-rand-function
 
Just use if { rand() < 0.1 } { ...
 
 
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