aboutsummaryrefslogtreecommitdiff
path: root/src/garage/cli
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-09-02 17:18:13 +0200
committerAlex Auvolat <alex@adnab.me>2022-09-02 17:18:13 +0200
commit5d4b937a00882b9bf8b36f7430f3d1fe9db58903 (patch)
tree3cf20f72e046b31285712277d765387e772f3958 /src/garage/cli
parent5e8baa433d743a06ab3ee90f375f24c3c36fc236 (diff)
downloadgarage-5d4b937a00882b9bf8b36f7430f3d1fe9db58903.tar.gz
garage-5d4b937a00882b9bf8b36f7430f3d1fe9db58903.zip
Ability to have up to 4 concurrently working resync workers
Diffstat (limited to 'src/garage/cli')
-rw-r--r--src/garage/cli/structs.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/garage/cli/structs.rs b/src/garage/cli/structs.rs
index 1fba934f..0388cef5 100644
--- a/src/garage/cli/structs.rs
+++ b/src/garage/cli/structs.rs
@@ -524,7 +524,10 @@ pub enum WorkerSetCmd {
/// Set tranquility of scrub operations
#[structopt(name = "scrub-tranquility", version = version::garage())]
ScrubTranquility { tranquility: u32 },
- /// Set tranquility of resync operations
+ /// Set number of concurrent block resync workers
+ #[structopt(name = "resync-n-workers", version = version::garage())]
+ ResyncNWorkers { n_workers: usize },
+ /// Set tranquility of block resync operations
#[structopt(name = "resync-tranquility", version = version::garage())]
ResyncTranquility { tranquility: u32 },
}