Pigsty sets create_replica_methods key in standby_cluster section to basebackup only. Can pgbackrest be supported too?
|
create_replica_methods: |
|
- basebackup |
|
{% endif %} |
Implementation notes
- A standby cluster needs to restore from the upstream cluster's stanza during its bootstrap, which is different from
{{ pg_cluster }} used by cascade replicas replicating from standby leader.
restore_command of the standby leader should bet set to pgbackrest archive-get with the upstream cluster's stanza, in case some WAL segments on the upstream primary have been recycled during restore and could not be received via streaming replication.
Pigsty sets create_replica_methods key in
standby_clustersection tobasebackuponly. Canpgbackrestbe supported too?pigsty/roles/pgsql/templates/oltp.yml
Lines 215 to 217 in c4ddba7
Implementation notes
{{ pg_cluster }}used by cascade replicas replicating from standby leader.restore_commandof the standby leader should bet set topgbackrest archive-getwith the upstream cluster's stanza, in case some WAL segments on the upstream primary have been recycled during restore and could not be received via streaming replication.