Note: Please go to docs.rightscale.com to access the current RightScale documentation set. Also, feel free to Chat with us!
Home > FAQs > How can I make sure that I don't accidentally terminate a server that has active sessions?

How can I make sure that I don't accidentally terminate a server that has active sessions?

Table of Contents

 

Background Information

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.

 


Answer

There are several different ways that you can check to make sure that a server is no longer being used.

  1. Check a Server's Apache monitoring graphs for active sessions under its Monitoring tab.
  2. Check the TTL on your application servers. Once its TTL has expired, it's safe to terminate the server.
  3. Configure Apache so that it automatically shuts down when no connections exist. See example code below.
$ httpd -k graceful-stop
You must to post a comment.
Last modified
21:26, 16 May 2013

Tags

Classifications

This page has no classifications.

Announcements

None


© 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.