Forum Discussion

jdeeby_270877's avatar
jdeeby_270877
Icon for Nimbostratus rankNimbostratus
Oct 17, 2017

irule for Load Balancing method.

Looking to build an irule that would do the following

 

Say we have 2 nodes in the pool

 

A and B

 

Starting out I need all the traffic to go to A then if A goes down have all the traffic go to B. Seems straight forward right. The problem comes when A comes back up. I need all the traffic to stay at B unless it then goes down. In which all the traffic would go back to A, and so on and so forth.

 

Any help would be appreciated.

 

3 Replies

  • Hi Jdeeby,

     

    A very simple but power method to achive your requirement is to enable destination address affinity on your Virtual Server. You may want to create a dedicated destination address persist profile if the timeout values are requiring some tweaks...

     

    Thats all about. Enjoy!

     

    Cheers, Kai

     

  • You can use persist uie irule. We are using the same irule in our environment for the similar type of requirement.

     

    when CLIENT_ACCEPTED { { persist uie 1 } }