Forum Discussion
Dan_Bowman
Dec 20, 2018Cirrus
You don't need an iRule for this functionality from what I can see of your requirements?
Just set your pool up with priority group activation and configure to "less than 1 available member", then give pool member Server1 priority weight 10, and Server2 priority weight 5.
This will route all traffic to Server1 only, and direct traffic to Server2 only if preferred member becomes available.
You will also require an appropriate health monitor for the pool to check availability.