Forum Discussion

prabhuj_247068's avatar
prabhuj_247068
Icon for Nimbostratus rankNimbostratus
Jan 31, 2016

Primary failover setup

I would like to setup F5 LB with following behavior using iRules,

 

I want to get 2 tcp servers (machine1, machine2) configured under F5 LB in primary-failover mode. When both services are up and running a client should connect to machine1 only. When machine1 goes down, the client will retry connecting and F5 should redirect the connection to machine2. If machine1 comes back the existing client and new clients should still connect to machine2 (Note: new connections should go to machine2 even if machine1 is up and running). Only when machine2 goes down, the application should reconnect to machine1.

 

Could you please help me how to setup F5 with above behavior using iRules.

 

1 Reply

  • anoop1's avatar
    anoop1
    Icon for Nimbostratus rankNimbostratus

    Hi Prabhu,

     

    i do not think irule is the answer of your question you should be using priority group activation along with icall to achieve the same , either you can run it periodicly or the best method should be configuring the alert for the pool member with alert.conf and trigger the icall based on the event and alter the priority group ratio via icall script.