Forum Discussion

ML_108504's avatar
ML_108504
Icon for Nimbostratus rankNimbostratus
Mar 24, 2007

Defining active/passive members

Hi folks! I'm hoping someone can help me define an iRule that would direct all clients to one member (member A), unless the monitor fails on that member and then all traffic would go to a standby member (member B).

 

 

I'm looking at LB_FAILED and the other LB global commands, but I cannot suss out how to define what I need. This is one of my first cracks at iRules, and I need some guidance.

 

 

Thank you!

7 Replies

  • Hi,

     

     

    You can use priority on the members of a pool to achieve this. Set the member you want to receive requests to 100 for example. Then set the second member to 10. The member set to 100 will receive all requests unless it gets marked down.

     

     

    You can get more detail on priority groups in the LTM configuration guide on AskF5 (Click here).

     

     

    The config guide shows the configuration as it appears in a file. But you can also set this up in the GUI under Local Traffic | Pools | pool_name | Members.

     

     

    Aaron
  • Thanks Aaron! I managed to come to the same conclusion after further reading/research, but I appreciate the response. Hopefully it will help other newbies like me.
    • keshav_163381's avatar
      keshav_163381
      Icon for Nimbostratus rankNimbostratus

      Still you can run that if the routing does not have any issue.

       

    • Shanmu123_27642's avatar
      Shanmu123_27642
      Icon for Nimbostratus rankNimbostratus

      Hi, can we achieve same host availability across Data center. For Example, I have a host configured in DC1, same hostname with the different IP address in DC2. Can i set F5 LTM such a way, when host on DC2 should come up only when the host on DC1 is down. ( Note: there are other members also in the LTM pool)

       

  • Yes, You can achieve it with priority group activation where you can add pool members DC 1 with higher priority and DC 2 with lower Priority.

     

    • Shanmu123_27642's avatar
      Shanmu123_27642
      Icon for Nimbostratus rankNimbostratus

      Ok, thanks for the reply, actually its not for all the pool members in the pool. Only one pool member which is Primary VM needs to be configured for Active / Passive setup.