Promote a standby
Both switchover and failover to promote a High Availability (HA) standby must be done manually.
In the case of a failure of your active HA instance, where the previous active instance is unavailable or unreachable during promotion, failover is not automatic. In the case of failover, you promote the standby using the Force promotion option.
Promotion and old backups
Immediately after upgrading the active instance to a new version of YBA, older state backups of the active instance (that is, before it was upgraded) will still be available on the standby. These are not deleted until the standby is promoted at some point, or until they expire.
Because these old backups are present, you need to be cautious promoting the standby in the time immediately following an upgrade.
When possible, only promote a standby when both standby and active are on the same version, and use the most recent backup that you are confident was received after the active instance was upgraded.
Promote a standby instance to active
You can make a standby instance active as follows:
-
On the standby instance you want to promote, navigate to Admin > High Availability > Replication Configuration and click Make Active.
-
Select the backup from which you want to restore (in most cases, you should choose the most recent backup) and enable Confirm promotion.
Do not promote an old backup
If you recently upgraded the active instance, ensure the backup you select is up to date. See Promotion and old backups. -
If you are performing a failover, where the previous active instance is unavailable or unreachable during promotion, select the Force promotion option.
This will promote the standby without demoting the active.
-
Click Continue. The restore takes a few seconds, after which expect to be signed out.
-
Sign in using the credentials that you had configured on the previously active instance. If you are performing failover, you must sign in using your Super Admin account.
You should be able to see that all of the data has been restored into the instance, including universes, users, metrics, alerts, task history, provider configurations, and so on.
-
In the case of failover, follow the steps in Failover to ensure that the old active does not come back up or that it goes into standby mode when it does come up.
Verify promotion
After switching or failing over to the standby, verify that the old active YBA instance is in standby mode (switchover), or is no longer available (failover).
If both YBA instances were to attempt to perform actions on a universe, it could have unpredictable side effects. It is critical to ensure that the old active instance is taken out of service or re-imaged as soon as possible if it is unavailable.
YugabyteDB release archives are not synchronized between the active and standby instances. If any custom releases were added to the old active instance, you will need to add them to the new active instance again. The Universe Release Files Missing alert will fire on any universes that are missing their corresponding release archives. If this alert fires, follow the steps in How to Configure YugabyteDB Anywhere to provide Older, Hotfix, or Debug Builds.
Switchover
After a switchover, do the following:
- Verify that HA is functioning properly.
- If the old active instance is not in standby mode, there could be a communication issue from the new active to the old active instance. Follow the setup instructions to verify that certificates and ports are set up correctly.
Failover
After a failover, do the following:
-
If the old active instance is hard down, verify that there is no chance that it can come back and run YBA at a later point. It is recommended to re-image the server hosting the active instance.
-
If the old active instance does come back up, it should automatically go into standby mode. If it does not go into standby mode, you should manually demote it using the YBA API. Refer to High Availability Workflows for an example.
-
If the old active instance has successfully switched to standby, verify that HA is functioning properly.