Forum Discussion

jpeterson6's avatar
jpeterson6
Icon for Nimbostratus rankNimbostratus
Oct 06, 2017

Receive Disable string functionality with persistence enabled

Hi,

 

What is the best method to configure the Receive Disable String functionality when Persistence is being used to ensure that the server going under maintenance stops receiving traffic as soon as possible?

 

Is there an irule out there that can check for the 'under maintenance' health page in HTTP_RESPONSE and clear the persistence table for that VIP, or is there another way to do this?

 

I'm on 12.1 currently.

 

  • I too had this concern, I tried going with forced-offline too. But was also reported that persistent connections were still present. Hence had to manually clear out the persistent entries, that's what the article says too.

    Also, I stumbled upon this

    action on service down
    feature, where I had set this to reject state. It did made some difference. Since I was unable to generate much load test, I can't confirm if this is going to satisfy your need, may be you test this out.

    Put your member to forced-offline with action on service to reject and update us.

    Also I had happened to save this once, haven't tested though.

    when SERVER_CONNECTED {
        TCP::collect
    }
    when SERVER_DATA {
        if { [active_members -list [LB::server pool]] contains [LB::server addr] } then {
            TCP::release
        } else {
             Use TCP::close to close the connection after the next response
    
            TCP::close
    
             User reject to terminate the request immediately
    
             reject 
        }
    }