vitabaks / postgresql_cluster

PostgreSQL High-Availability Cluster (based on Patroni). Automating with Ansible.
https://postgresql-cluster.org
MIT License
1.69k stars 410 forks source link

PgBackRest: Enable asynchronous WAL archiving #515

Closed vitabaks closed 11 months ago

vitabaks commented 11 months ago

Asynchronous archiving is enabled with the archive-async option. This option enables asynchronous operation for both the archive-push and archive-get commands.

Asynchronous operation is most useful in environments that generate a lot of WAL or have a high latency connection to the repository storage (i.e., S3 or other object stores).

Details: https://pgbackrest.org/user-guide.html#async-archiving

Example:

default 2023-11-21_12-02-38

with "archive-async" 2023-11-21_11-58-22