Forum Discussion

Bryan_Goodwin_1's avatar
Bryan_Goodwin_1
Icon for Nimbostratus rankNimbostratus
Mar 20, 2014

Priority group failback

I need to figure out how to sever a persistent TCP connection in order to allow my lower priority group to failback to the higher priority group. Anyone know of an iRule way of doing this?

 

Basically, I would want to issue a TCP RST or FIN to the lower group server/client in the event that the higher group comes back online.

 

Thanks for any ideas,

 

Bryan

 

4 Replies

  • Hi!

    Assume that 10.0.0.1 is the primary server and 10.0.0.2 is the fallback this should work (per request):

    when HTTP_REQUEST_SEND {
    
        if { [LB::status pool poolname member 10.0.0.1 80] equals "up" and [IP::addr [LB::server addr] equals 10.0.0.2] } {
            reject
        }
    }
    

    If you have more than one server in the priority group, just add some "or" to the if statement.

    /Patrik

  • I think I tested it back then and it worked. You might want to test it yourself in a test environment though to make sure your client can handle reconnecting.

     

    And don't forget to actually configure the priority groups. Otherwise you fill get some less desirable results.

     

    /Patrik