Migrate to a different cloud provider or regionΒΆ

Any Aiven service can be relocated to a different cloud vendor or region. This is also valid for PostgreSQL where the migration happens without downtime. Cloud provider/region migration features mean that you can relocate a service at any time, for example to meet specific latency requirements for a particular geography.

To migrate a PostgreSQL service to a new cloud provider/region

  1. Log in to the Aiven web console and select the PostgreSQL instance you want to move.

  2. In the Overview tab, click Migrate Cloud.

Migrate Cloud button on Aiven web console
  1. Select the new cloud provider and region where you want to deploy the PostgreSQL instance, then click Create

The PostgreSQL cluster will enter the REBALANCING state, still serving queries from the old provider/region.

Image showing a PostgreSQL cluster in ``REBALANCING`` state

New nodes will be added to the existing PostgreSQL cluster residing in the new provider/region and the data will be replicated to the new nodes. Once the new nodes are in sync, one of them will become the new primary node and all the nodes in the old provider/region will be decommissioned. After this phase the cluster enters in the RUNNING status, the PostgreSQL endpoint will not change.

Image showing a PostgreSQL cluster in ``RUNNING`` state

Tip

To have consistent query time across the globe, consider creating several read-only replicas across different cloud provider/regions