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 connections to the node being stopped
b) wait gracefully to the end the last connection to this node
c) when load-balancer has no more connections to this node, mark it down
d) return control to the script to continue shutdown
Does anybody have something like it working?
- 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
http://devcentral.f5.com/wiki/default.aspx/iControl/LocalLB__PoolMember__get_statistics.html
http://devcentral.f5.com/wiki/default.aspx/iControl/LocalLB__PoolMember__set_monitor_state.html
- nevot_66724
Nimbostratus
Thank you very much for your reply, I will start working on it! - bilco105_9926
Nimbostratus
Why would you want to query the LTM for the amount of connections when you have commands available to show you established connections on the box itself? - Sanjay_Liman_95
Nimbostratus
Hi, - Don_MacVittie_1Historic F5 AccountHi Lee,
- Also you can check out the tech tip I wrote on "Graceful Server Shutdown". The app in there disables new connections, queries the stats to wait for all persistent connections to drain, and then disables the pool member.
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=254
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