Forum Discussion

Ankur_Goel_2526's avatar
Ankur_Goel_2526
Icon for Nimbostratus rankNimbostratus
Oct 16, 2017

Need irule to change LB mechanism for particular URI regex

Hi, I am looking an iRule by which I can change LB mechanism (Round robin to weighted) for particular regex URI and rest traffic will be done by Round robin mechanism. Appreciate your response. Thanks!!

 

  • I tried this below but not sure if it will work. Please verify this.

     

    when HTTP_REQUEST { if { [HTTP::uri] contains "/authenticate*" } { LB::mode leastconns } else { LB::mode rr }