On first boot, the script initializes a MySQL DB server to become a Slave-DB of a running Master-DB when it's launched.
This RightScript performs the following actions: * Makes a local Slave copy of the current Master-DB. * Starts this server as a MySQL Slave to a Master-DB. * Sets up the correct configuration file for a reboot to continue the slave role.
Boot-time version of slave initialization. Can be enabled/disabled by setting:
- INIT_SLAVE_AT_BOOT = true/false
NOTE: Setting the value to $ignore is equivalent to true.
When set to True, it performs the same actions as its counterpart in the operational script's list: * Converts a running DB instance to be a slave of an existing Master-DB. * Snapshot and pull the necessary files of the running master. * Set the slave DNS entry to point to the instance's private IP.
No action is taken. MySQL just restarts and resumes its past role. * If the Slave was started, it continues. * If the Slave was not started, it stays the same.
This script is part of RightScale's Database Manager.
Revision 7 | Oct 03, 2012
Revision 4 | Mar 18, 2011
Sign-up for RightScale