M1 v23
A Postgres cluster with a primary and a streaming replica, one Barman server, and any number of additional replicas cascaded from the first one.
By default, the primary has one read-only replica attached in the same location; the replica, in turn, has one cascaded replica attached in a different location, where the Barman server is also configured to take backups from the primary.
If there is an even number of PostgreSQL nodes, the Barman node is additionally configured as a repmgr witness. This ensures that the number of repmgr nodes is always odd, which is convenient when enabling automatic failover.
Cluster configuration
You must specify --architecture M1
. (In the example above, this is
the only option required to produce a working configuration.)
You may optionally specify --num-cascaded-replicas N
to request N
cascaded replicas (including 0 for none; default: 1).
You may also specify any of the options described by
tpaexec help configure-options
.
- On this page
- Cluster configuration