Drain a load balanced server
Server draining is the redirection of incoming calls and new connections from the specified server to other servers connected to the same load balancer. Draining is used to minimize service interruption when taking a server offline for maintenance. Sessions started before the server is put into draining status continue until completion. When all sessions have ended, the server is considered drained and can then be taken offline. The following steps help to ensure minimal service interruption when removing a cloud server from an active load balancer.
- Select the Load Balancers tab.
- Click the name of the applicable load balancer to view the connected servers.
Click the gear icon next to server to be drained and select Edit Node Condition.
Select Draining Connections for the server condition and click Save Condition.
- Monitor the applicable port of the currently draining node for continued activity (for a Linux server check netstat for new connections).
- When activity has ceased, repeat the first 5 steps above (as needed) and select Disabled in the repeated 5th step.
After a server is disabled, it can be removed from the load balancer by clicking on the gear icon next to the server and selecting Remove from Load Balancer and the application can be stopped or the instance deleted, depending on your needs.
Continue the conversation in the Rackspace Community.
©2018 Rackspace US, Inc.
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License