Migrate from a Single AZ to a 3-AZ region for Public Cloud Databases
Objective
OVHcloud Public Cloud Databases can be deployed with different architectures to meet varied needs for availability and resilience. This guide is specifically designed to walk you through the migration of your existing database service from a single availability zone (1-AZ) configuration to a 3-AZ architecture (three availability zones). You'll discover the detailed steps to perform this transfer, ensuring high availability and improved fault tolerance for your critical applications.
Requirements
- A Public Cloud project in your OVHcloud account
- An existing database service deployed in a single availability zone (1-AZ)
- A 3-AZ region activated within your Public Cloud project
- Access to the OVHcloud API (optional)
OVHcloud Control Panel Access
- Direct link: Public Cloud Projects
- Navigation path:
Public Cloud> Select your project
Why move to 3-AZ?
Migrating your database service to a 3-AZ deployment significantly enhances its resilience, high availability, and disaster recovery capabilities. In a 3-AZ setup, provided your service runs on multiple nodes, your data is synchronously replicated across three distinct availability zones within the same region. This architecture ensures that in the event of an outage in one zone, your database service can automatically failover to another operational zone with minimal downtime and no data loss.
For more detailed information on the deployment modes and their technical specifications, please refer to our dedicated guide: Comparison of Public Cloud Databases Deployment Modes - Understanding 3-AZ / 1-AZ.
Here is a list of currently supported 1-AZ and 3-AZ regions for database services:

Reversibility
The migration from a Single-AZ region to a Multi-AZ region is reversible — services can be migrated back to a Single-AZ region.
Instructions
Move a database service to 3-AZ
Click Databases in the left navigation bar, select your database service then click the Backups tab.

Choose the backup from which you wish to fork, click on the ... button and click on the Duplicate (fork) button.

The page that appears allows you to configure your service and choose the destination region.
Select the Restore point named Backup.

Select a 3-AZ region.

Select a service plan.

Select the instance that will host the service.

Select the storage capacity of the service.

If needed, you can edit the connectivity settings, then verify the IP addresses to whitelist (the list is pre-filled by default with the origin service's configuration).

When you have completed your configuration, review your order then click on the Order button.

To interact with your Public Cloud Databases services via the OVHcloud API, make sure you've mastered the basics first by consulting our guide: Public Cloud Databases - Getting started with APIs.
To find the backup ID of a service, use the following API call:
This call retrieves the backup list of the concerned service. They are listed in order from the most recent backup to the oldest.
If you want to check the information on a particular backup, you can use this API call:
To create your new service from one backup, use the following API call:
An example of a body for this API call:
The field named backup is deprecated and replaced by forkFrom.
Validate the deployment
After your new 3-AZ database service has been successfully provisioned, it's crucial to validate its deployment and ensure your applications can connect to it.
- Test the connection to your new service:
- Use a database client (e.g., psql for PostgreSQL, mysql for MySQL) or a simple script to verify that you can connect to the new 3-AZ service's endpoint using its credentials.
- Confirm that your data has been successfully migrated and is accessible.
- Configure your application to use the new service:
- Update your application's configuration files or environment variables to point to the new 3-AZ database service's connection string (host, port, username, password).
- Restart your application to apply the changes.
- Thoroughly test your application's functionality to ensure it operates correctly with the new database endpoint.
Clean up
Once you've fully validated that your application is working correctly with the new 3-AZ database service, and you're confident all data has been transferred and is accessible, you can proceed with deleting the old 1-AZ service.
This step is crucial to avoid unnecessary costs and maintain a clean infrastructure.
Follow these instructions to delete the old 1-AZ service:
Navigate to your list of database services, click on the ... button on the service line and click on the Delete button to permanently delete the service.

To delete your service, use the following API call:
We want your feedback!
We would love to help answer questions and appreciate any feedback you may have.
If you need training or technical assistance to implement our solutions, contact your sales representative or click on this link to get a quote and ask our Professional Services experts for a custom analysis of your project.
Are you on Discord? Connect to our channel at https://discord.gg/ovhcloud and interact directly with the team that builds our databases service!