EnterpriseDB / barman

Barman - Backup and Recovery Manager for PostgreSQL
https://www.pgbarman.org/
GNU General Public License v3.0
2.02k stars 190 forks source link

"Copying required WAL segments" ignores parallel_jobs during remote recover #306

Open dilruacs opened 3 years ago

dilruacs commented 3 years ago

I am running barman 2.11 and configured parallel_jobs to 4 During a recover with --remote-ssh-command the base backup is copied to the target server with the configured amount of threads. The WAL segments are copied with a single thread.

This is a serious performance issue for us during recovery.

amenonsen commented 3 years ago

You can use --get-wal to make barman write a restore_command using barman-wal-archive, and edit it to use the -p X option to transfer WAL in parallel. Not very satisfying, perhaps. We'll see if there's a way to make this behaviour better.