In the Cloud, you should always use discretion before terminating servers. Remember, if you terminate a server, you will end any active sessions. For example, let's say you're performing a minor software upgrade in the Cloud where you're replacing old application servers with new ones. Although, you've already removed the old application servers from the load balancing pool so that they will no longer receive any new requests by running the LB app to HA proxy disconnect operational RightScript, it's important that you still preserve any active sessions during this upgrade. You need to find a way of determining when the old application servers are no longer being used so that you can safely terminate the servers.
There are several different ways that you can check to make sure that a server is no longer being used.
$ httpd -k graceful-stop
© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.