Forum Discussion
2 Replies
Sort By
- Abuhasan_116587Nimbostratus
I have used below irule .Pls check any additional conditional can be used prior to deployment
Create two pools Server1 and Server2
when CLIENT_ACCEPTED { set noofpools [active_members Server1] if {$noofpools < 1 } { pool Server2 } else {pool Server1} }
- Dan_BowmanCirrus
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.