The promote an app slave feature allows you to manually initiate an application master takeover. A few reasons why you might want to initiate a takeover:
- Change the size of your application master by creating a new application slave and promoting it.
- To test your recovery processes. Use the Engine Yard UI to promote an app slave.
Important: Do not initiate an application master takeover if you have initiated a database replica takeover. Initiating two major environment configurations simultaneously may leave your environment in an erroneous state. For example, the dashboard may show that an app slave has been successfully promoted when it has not. Wait until one takeover process has thoroughly completed before initiating a new one.
- This article assumes you already have an Engine Yard account. If not, see Sign up for an Engine Yard Account.
- You must have a non-solo environment and at least one healthy app server that you have designated for promotion.
Update your Application Cluster and Application Master
This section provides an example of using the promote application slave feature to update your application cluster and app master. For example, if you currently have 1 application master and 3 application slaves (all sized at M3 Medium) and you want to change them to M3 Large, then you will need to update your application cluster with 4 new application slaves (sized at M3 Large) and manually promote one to an application master.
Note: The number of new application slaves (sized at M3 Large) you have after the promotion is determined by the Takeover Preference environment configuration.
To update your application cluster and application master:
- Log in to Engine Yard.
- Add a new application instance, let it provision, configure and deploy the application.
- Verify proper functioning (through haproxy stats, application deploys, etc).
- Terminate one app slave instance from the original configuration.
- Click Apply after the instance terminates.
- Repeat the above steps until all application servers are in the required configuration.
You now have the updated application servers in your cluster.
- To promote one of the updated application servers to an application master, do one of the of the following:
- Click the Takeover link associated with the relevant application slave.
- Terminate the Application Master instance to promote a random slave.
Note: Any data on instances that is not stored on the
/data volume will be lost.
|For more information about...||See...|
|How the automatic (Engine Yard initiated) application master takeover works||Application Master Takeover|
|Assigning an elastic IP address to an app slave instance||Use Application Slave IP Addresses|
If you have feedback or questions about this page, add a comment below. If you need help, submit a ticket with Engine Yard Support.