Forum Discussion
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.
- Lee_Sutcliffe
Nacreous
Will this help?
Single node persistence:
https://devcentral.f5.com/codeshare?sid=690
Another option could be to use priority groups and maybe change the priority value when a node goes down but I've not tried using that in an iRule before.
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
- RaghavendraSY
Altostratus
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 } }
Recent Discussions
Related Content
* 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