Forum Discussion
nevot_66724
Nimbostratus
Jul 12, 2008iControl graceful stop node
Hello,
I'm searching for a perl script just to make a 'graceful' stop of one of my webservers.
My objective is to add some code to /etc/init.d/httpd for:
a) do not accept more con...
Jul 14, 2008
The way to gracefully stop a pool member is to first stop all new connections to it by disabling new sessions with the LocalLB.PoolMember.set_session_enabled_state() method.
http://devcentral.f5.com/wiki/default.aspx/iControl/LocalLB__PoolMember__set_session_enabled_state.html
Click here
You will then have to poll the statisitcs for the Pool Member with the LocalLB.PoolMember.get_statistics() method and look at the STATISTIC_SERVER_SIDE_CURRENT_CONNECTIONS statistic.
http://devcentral.f5.com/wiki/default.aspx/iControl/LocalLB__PoolMember__get_statistics.html
Click here
You'll need to continue polling until the current connections drops to zero. At that point you can mark the pool member down with the LocalLB.PoolMember.set_monitor_state() method.
http://devcentral.f5.com/wiki/default.aspx/iControl/LocalLB__PoolMember__set_monitor_state.html
Click here
Hope this helps...
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
