Forum Discussion
Sergio000_19532
Nimbostratus
Apr 18, 2018load balancing beetween two next hop irule
Hi!
I am trying to implement an irule to load balancing between two next hops, like the configuration in the network section but in irule. I am implementing this on a Virtual server forwarding I...
Jeff_Maddox_394
Apr 26, 2018Historic F5 Account
You can use rand() with a conditional;
 
if {rand() < .5} {nexthop blah} else {nexthop other} will send roughly 50/50 to either next hop.
 
See related article on ratio load balancing: https://devcentral.f5.com/s/articles/ratio-load-balancing-using-rand-function
 
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