P.5. High Availability #

What RPO/RTO does Postgres Pro Shardman provide?

Postgres Pro Shardman provides almost zero RTO and RPO. Failover takes 5–30 seconds. RTO of a failed shard (all leader and follower nodes) depends on the data volume, backup, network, and disk speed. Due to the distributed nature of Postgres Pro Shardman, RTO of the entire cluster equals RTO of a single shard in case of sufficient network and disk speed.

What happens if one of the shards goes offline?

Transactions on the offline shard will be terminated. Unresolved prepared transactions coordinated by the offline shard may remain. Data modified by these transactions may become unavailable for reading. All other operations that do not involve data on the offline shard will continue as usual.

What happens if one of the nodes fails?

If one of the nodes fails, Built-in High Availability (BiHA) detects the failure after the configured heartbeat timeout (biha.heartbeat_send_period × biha.heartbeat_max_lost) and starts elections automatically. If the shard has replicas, one of the follower nodes becomes the new leader.

How does a switchover from a leader to a follower occur in Postgres Pro Shardman?

A switchover in Postgres Pro Shardman occurs automatically. Each of the shards is a BiHA cluster, for which you can configure the priority.

What happens if quorum fails?

If there are not enough online standby nodes, the shard switches to read-only mode.

What database objects can be replicated in Postgres Pro Shardman?

Objects of all types can be replicated in Postgres Pro Shardman. Postgres Pro Shardman uses physical replication to provide high availability for all shards. Moreover, Postgres Pro Shardman uses replication at an instance level. Even if you create local databases with local objects, they will be replicated and supported in a Disaster Recovery Site (DRS).

Is it possible to configure logical replication from Postgres Pro Shardman to Postgres Pro Shardman or to PostgreSQL?

You can configure logical replication with ProGate.

Can I configure asynchronous replication in Postgres Pro Shardman?

No, Postgres Pro Shardman uses asynchronous replication only in a DRS.

What is a Disaster Recovery Site (DRS) in Postgres Pro Shardman?

In short, a DRS is an independent non-readable Postgres Pro Shardman cluster that is connected to the main cluster with WAL replication.

For more information about DRS, refer to Section 33.5.

Can I lower hardware requirements for a Disaster Recovery Site (DRS) compared to the main cluster?

A DRS is intended to have lower hardware requirements. However, it must have the same topology as the main cluster.

Can I use bihactl in Postgres Pro Shardman?

No, in Postgres Pro Shardman, you must use the shardmanctl utility instead.

Is split-brain possible in Postgres Pro Shardman?

Split-brain is impossible in Postgres Pro Shardman if quorum is configured properly.

Why do I need a referee node in Postgres Pro Shardman?

In case of distributed network failures, for example, when the database is hosted in multiple data centers, Postgres Pro Shardman needs a dedicated monitoring component to determine which node is operational and to perform an optimal failover.

Is a referee node mandatory in Postgres Pro Shardman?

You do not need a referee if shards in a cluster contain an odd number of follower nodes.

FAQ