Forum Discussion
How to determine which priority group is active with irule
Hello,
Before selecting a specific member from a pool, I need to decided with priority group is active. Except probing each member manually is there any other command to know it ?
Thanks
5 Replies
- Kevin_Stewart
Employee
Can you clarify your intentions? Do you need to know the priority group of the selected pool member in real time, in an iRule? Or something from the management plane? - Pratik_125797
Nimbostratus
Actually I have 6 members in a group, Member A, B, C with higher priority and member D, E, F with lower priority. Least available members configured to 2
Now for particular bunch of source IP, I want the traffic to stick to one member of a pool. So I can make an irule with match class and select member as A.
if A is down go to B and if B is down go to C.
But the issue here is, let's say A and B is down, so priority group will fail over to DEF. But above irule will still send traffic to C which is creates a discrepancy as my other traffic is flowing through D, E, F.
So before selecting a pool member I need to know which priority group is active A,B, C or D,E,F and then send traffic accordingly. - Kevin_Stewart
Employee
Ah, well I don't believe you can get the priority group value of a node in an iRule. One immediate idea comes to mind though. If you can create a data group that defines each node and its associated priority group, let the pool select a member naturally, check the chosen member to see which priority group it's in, then modify your iRule accordingly to reselect the pool member as necessary.
- nitass
Employee
can we create 2 pools (ABC and DEF) and use irule to send traffic to DEF pool when active member of ABC pool is equal to 1? - Pratik_125797
Nimbostratus
Hello Nitass,
Yes that is the last option which I have suggested in case if I don't find a solutin on time.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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