Update PostgreSQL Replication Mode
With the PATCH request, you can update the replication mode of the PostgreSQL cluster.
Which replication mode to choose?
Use
ASYNCHRONOUSwhen you prioritize write performance and can tolerate potential data loss on failover.Use
STRICTLY_SYNCHRONOUSwhen data durability is critical, and you have at least 3 replicas.
What are the potential impacts of switching replication modes?
Switching to
ASYNCHRONOUSfromSYNCHRONOUSmode should not pose any downtime.If you are using an
ASYNCHRONOUSorSYNCHRONOUScluster with less than 3 replicas and you decide to switch to theSTRICTLY_SYNCHRONOUSmode (which requires 3 replicas at least),You might experience some time where the DB is read-only.
The downtime is because the replication mode on writes needs confirmation from at least one synchronous-standby, and the primary is not allowed to continue in the standalone mode. For more information, see Replication Mode.
Endpoint
Use the following endpoint to update the replication mode for an existing PostgreSQL cluster:https://api.ionos.com/databases/postgresql/clusters/{clusterId}
Request
Response
Last updated
Was this helpful?