Forum Discussion

sundogbrew's avatar
sundogbrew
Icon for Altocumulus rankAltocumulus
Apr 23, 2010

draining connections

So I have a new question. We have this windows app that is running on 4 servers that I am load balancing to. There is some sort of problem that is happening and the solution (believe it or not) is to reboot the servers twice a day. So what we need to do is drain connections off of a server so it can be rebooted. So I need to know if anyone has ever done anything like this or has an idea on how to do this. Once someone starts a connection they get a cookie so they stay with the same server until they are done with whatever they are doing. I am wondering if there is a way to say no new connections, but let this session finish. The monitor on this app is nothing fancy, if the webserver is up it is getting traffic. Thanks so much as always! Joe

1 Reply

  • Hi Joe,

     

     

    You can use the node status for this.

     

     

     

    http://devcentral.f5.com/Default.aspx?tabid=53&forumid=32&tpage=1&view=topic&postid=812653812656

     

     

    To set the node to disabled (Only persistent or active connections allowed), you can use 'b node 1.1.1.1 session disable/enable'.

     

     

    You can use 'b node 1.1.1.1 down' to set 1.1.1.1 to forced offline (Only active connections allowed). You can reset the stats for a node by running 'b node 1.1.1.1 stats reset' and then check for active connections using 'b node 1.1.1.1 stats' and check the "cur" total.

     

     

     

     

    Aaron