Forum Discussion

Pratik_125797's avatar
Pratik_125797
Icon for Nimbostratus rankNimbostratus
Jul 04, 2013

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

  • 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?
  • 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.
  • 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.

     

  • 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?
  • Hello Nitass,

     

     

    Yes that is the last option which I have suggested in case if I don't find a solutin on time.