High availability#
Aiven for PostgreSQL® is available on a variety of plans, offering different levels of high availability. The selected plan defines the features available, and a summary is provided in the table below:
Plan |
High Availability Features |
Backup History |
---|---|---|
Hobbyist |
Single-node with limited availability |
2 days |
Startup |
Single-node with limited availability |
2 days |
Business |
Two-node (primary + standby) with higher availability |
14 days |
Premium |
Three-node (primary + standby + standby) with top availability characteristics |
30-day |
About primary and standby nodes#
Aiven’s Business and Premium plans offer primary nodes and standby nodes nodes. A standby service is useful for multiple reasons:
Provides another physical copy of the data in case of hardware, software, or network failures
Typically reduces the data loss window in disaster scenarios
Provides a quicker database time to restore with a controlled failover in case of failures, as the standby is already installed, running, and synchronised with the data
Can be used for read-only queries to reduce the load on the primary server
Failure handling#
Minor failures, such as service process crashes or temporary loss of network access, are handled automatically by Aiven in all plans without any major changes to the service deployment. The service automatically restores normal operation once the crashed process is automatically restarted or when network access is restored.
Severe failures, such as losing a node entirely in case of hardware or severe software problems, require drastic recovery measures. The Aiven monitoring infrastructure automatically detects a failing node both when the node starts reporting issues in the self-diagnostics or when stops communicating. In such cases, the monitoring infrastructure automatically schedules a new replacement node to be created.
Note
In the event of database failover, the Service URI of your service remains the same; only the IP address will change to point to the new primary node.
Single-node Hobbyist and Startup service plans#
Hobbyist and Startup plans provide a single node; when it’s lost, Aiven immediately starts the automatic process of creating a new replacement node. The new node starts up, restores its state from the latest available backup, and resumes serving customers.
Since there is just a single node providing the service, the service is unavailable for the duration of the restoration. In addition, any write operations made since the backup of the latest WAL file are lost. Typically, this time window is limited to either five minutes of time or one WAL file.
More information about on PostgreSQL upgrade and failover procedures is available at the dedicated page.