Engine Yard Developer Center

Rebuild an Environment

This page describes how to rebuild an environment and how to minimize downtime.

Why would an environment need to be rebuilt?

  • An app_master/db_master instance in a Solo environment has become frozen.
  • An app_master/db_master instance in a Solo environment has a retirement or maintenance notice.
  • An app_master/db_master instance in a Solo environment needs to have its instance type or volume sizes changed.
  • A db_master has become frozen or has run out of disk space, and does not have a replica available and healthy for promotion.
  • You want to change between a Solo configuration and a Cluster configuration type.

Taking snapshots

Important! When deciding to rebuild an environment, you should take a snapshot before terminating the environment. The reason for this is because snapshots are incremental.

When a snapshot is taken before the environment is terminated, the snapshot captures all changes up to that point. Then when requesting to terminate an environment, the snapshot taken at the time of termination runs faster because of the recent prior snapshot. 

Steps to rebuild an environment

Note: It is highly recommended to perform a test rebuild using a cloned environment first.

  1. Put your site into maintenance mode using the engineyard gem:

     ey web disable 
  2. Click Snapshot in your environment to start a snapshot.

  3. After snapshots have completed, click Terminate to shutdown your environment.

  4. Click Boot after all instances are terminated.

  5. Choose the Custom option from the configuration screen.

  6. Configure new instances using previous settings or select new options if desired.

  7. Ensure that the most recent snapshots from the Application snapshot and Database snapshot drop-downs are selected.

  8. Click Boot This Configuration to start rebuilding your environment.

Engine Yard recommends using the maintenance mode at the beginning of the rebuild process as it effectively stops traffic (especially database writes) for the period of time between finishing snapshots and terminating the environment.


If you have feedback or questions about this page, add a comment below. If you need help, submit a ticket with Engine Yard Support.

Was this article helpful?
12 out of 12 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.

Powered by Zendesk