On Thu, Mar 31, 2022 at 8:58 AM 'Anco Huiberts' via Barman, Backup and
Recovery Manager for PostgreSQL <
pgba...@googlegroups.com> wrote:
>
> What do you measn with "slow"?
> => We encounter a long delay to copy the wal from the streaming location to the backup location (using pigz). Sometime it is 6 seconds per file of 16M, sometime 2 minutes. Try to find out why ;-)
From the logs you pasted it seems to require 1-2 seconds per file. I
suspect sometimes there's a burst and pg_receivewal (on the barman
side) is not able to keep up.
Or you have something that is requiring all the IOPS and the system
slows down (but you should have an evidence also on the PostgreSQL
side).
There are a lot of reasons why this is happening, I suggest to try to
monitor both machines when the WAL is sent with delay.
Luca