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.
Will this help?
Single node persistence:
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
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 } }