This guide describes how to prepare a standby control panel (CP) server, which can be used to recover services when the primary control panel server has an outage or requires maintenance.
To activate the standby CP, do the following:
- On the standby CP, perform the regular CP server installation process. Ensure that the installed package versions are the same on both control panel servers.
On the standby CP, create a directory to store copies of the CP configuration files and database dumps.
From the primary CP, share the root and OnApp users’ public RSA keys with the standby CP.
Add the standby CP’s management IP address to the following line in the file /onapp/onapp-cp.conf (on the active CP).
Change the line:
After these changes, the hourly database dumps will be transferred to the standby CP automatically.
On the active CP, copy the needed configuration files:
On the active CP, add the following lines to /etc/crontab to enable automatic (hourly) backup and replication of the Redis database:
If СloudBoot is used, also add the following lines to /etc/crontab to enable automatic (daily) replication of CloudBoot configuration files:
If there is an outage on the active CP, refer to the Control Panel Migration Guide. Use steps 9 to 27 to activate the standby CP and restore services. For step 24, the RabbitMQ credentials can be found using the following command: