Forum Discussion

Zaq_340228's avatar
Zaq_340228
Icon for Nimbostratus rankNimbostratus
Nov 09, 2017

Correct configuration of Priority Groups

Hi,

 

I've configured one VIP with a pool and need help as this seems to be not working as I would like it to work. So the idea is to have two members in the same pool but use only one of the members and move to the other one only when the first one goes down. Solution to this seems to be the Priority Group Activation feature and priority on pool members. So in below configuration it works to the point where it only directs traffic to pc2. So correctly however when I bring down Apache on the pc2 it does not redirect traffic to pc1 - seems to be dropping it.

 

Any hints would be appreciated.

 

ltm pool pool-1-2 { members { 192.168.101.151:http { address 192.168.101.151 session monitor-enabled state up } 192.168.101.152:http { address 192.168.101.152 priority-group 10 session monitor-enabled state up } } min-active-members 1 monitor tcp }

 

ltm virtual VIP-pc1 { destination 192.168.100.155:http ip-protocol tcp mask 255.255.255.255 pool pool-1-2 profiles { tcp { } } source 0.0.0.0/0 source-address-translation { type automap } translate-address enabled translate-port enabled vs-index 14 }

 

5 Replies

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus

    Zaq - you need to add a priority of 1 or above for pool member 192.168.101.151. It looks like you've left it at 0 and this means it has no priority. That might explain your symptons.

     

    Hope this helps,

     

    N

     

  • nathan you mean like below? To a value bigger then 0 and in my case less then 10? If so then this configuration also have the same effect. When failed to the first one it drops the connections.

     

    ltm pool pool-1-2 { members { 192.168.101.151:http { address 192.168.101.151 priority-group 5 session monitor-enabled state up } 192.168.101.152:http { address 192.168.101.152 priority-group 10 session monitor-enabled state up } } min-active-members 1 monitor tcp }

     

    ltm virtual VIP-pc1 { destination 192.168.100.155:http ip-protocol tcp mask 255.255.255.255 pool pool-1-2 profiles { tcp { } } source 0.0.0.0/0 source-address-translation { type automap } translate-address enabled translate-port enabled vs-index 14 }

     

    • Shann_P_160848's avatar
      Shann_P_160848
      Icon for Nimbostratus rankNimbostratus

      For Priority Group Activation, I usually set the pool member that I intend to have traffic coming in on a regular basis to 5. Then my standby pool members get a Priority Activation of 4.

       

      If you are only having two members and then you'll likely need to set the minimum active members to less than 1. Not sure if that helps.

       

    • nathe's avatar
      nathe
      Icon for Cirrocumulus rankCirrocumulus

      zaq, in the statistics does the ltm send the traffic to the other pool member at all? I see you have a tcp monitor on the pool, is the other pool member not resetting the connection? perhaps change the monitor to http and/or do a tcpdump to see who is resetting the connection. Or you can try to curl to the server as well to test http connectivity.

       

  • Shann_p that's how i understand this feature - with two member I need to have minimum active members set to 1. I mean there's no other option here 0 or 1. When 0 disables this feature.