rustic-rs / rustic

rustic - fast, encrypted, and deduplicated backups powered by Rust
https://rustic.cli.rs
Apache License 2.0
1.95k stars 70 forks source link

Expose more concurrency settings to limit the number of concurrent threads #1215

Open zhuxiujia opened 2 months ago

zhuxiujia commented 2 months ago

How to limit the number of concurrent threads for backup?

In order to avoid affecting the business system during backup, it is necessary to limit the number of concurrent threads, which can control CPU usage and memory consumption

nardoor commented 2 months ago

Hello,

Thank you for taking the time to fill an issue!

Maybe more experienced maintainers will disagree, but I am not aware of any mechanism that allow that in our rustic implementation.

I see how this feature is necessary for some use cases (shared/centralized systems, background backups, ...).

I'll consider this as a feature request!

simonsan commented 1 month ago

Related: https://github.com/rustic-rs/rustic/issues/981