[SOLVED] qmrestore cli: Howto configure parallelism?

rahman

Renowned Member
Nov 1, 2010
95
5
73
Hi,

When using "qmrestore" for backup restore tests it uses 4 threads by default: "using up to 4 threads .... fetching up to 16 chunks in parallel". So how can I configure these values? I want to decrease it for testing (to see if it will affect S3 problems I am having). "man qmrestore" does not show any such parameters.

Regards,

Rahman
 
Hi!

You can configure these with the environment variables PBS_RESTORE_FETCH_CONCURRENCY for the amount of parallel chunk fetches and PBS_RESTORE_MAX_THREADS for the maximum amount of threads. You should be able to use these in front of the qmrestore command, for example with the default settings:

Code:
PBS_RESTORE_FETCH_CONCURRENCY=16 PBS_RESTORE_MAX_THREADS=4 qmrestore ...

There is a patch for this [0] in the mailing list, which should also include this information in the admin guide in the future.

[0] https://lore.proxmox.com/pbs-devel/20250714083439.1240349-3-d.csapak@proxmox.com/
 
  • Like
Reactions: rahman