diff options
author | Alex Auvolat <alex@adnab.me> | 2022-09-05 12:40:17 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-09-05 12:40:17 +0200 |
commit | 07e6bcde85bd1b24ec62b4f4cb552a7a20247370 (patch) | |
tree | 9eaf8de338f9aac41ae499517a2adf1159a48864 /src/garage/cli/structs.rs | |
parent | 6226f5ceca7828d096890c3dbc5b9fbc3f7c4b14 (diff) | |
parent | 0009fd136c744944888df15d706ca08ca251aed7 (diff) | |
download | garage-07e6bcde85bd1b24ec62b4f4cb552a7a20247370.tar.gz garage-07e6bcde85bd1b24ec62b4f4cb552a7a20247370.zip |
Merge branch 'main' into lx-perf-improvements
Diffstat (limited to 'src/garage/cli/structs.rs')
-rw-r--r-- | src/garage/cli/structs.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/garage/cli/structs.rs b/src/garage/cli/structs.rs index 9274f80f..0388cef5 100644 --- a/src/garage/cli/structs.rs +++ b/src/garage/cli/structs.rs @@ -501,6 +501,12 @@ pub enum WorkerCmd { #[structopt(flatten)] opt: WorkerListOpt, }, + /// Set worker parameter + #[structopt(name = "set", version = version::garage())] + Set { + #[structopt(subcommand)] + opt: WorkerSetCmd, + }, } #[derive(Serialize, Deserialize, StructOpt, Debug, Eq, PartialEq, Clone, Copy)] @@ -512,3 +518,16 @@ pub struct WorkerListOpt { #[structopt(short = "e", long = "errors")] pub errors: bool, } + +#[derive(Serialize, Deserialize, StructOpt, Debug, Eq, PartialEq, Clone)] +pub enum WorkerSetCmd { + /// Set tranquility of scrub operations + #[structopt(name = "scrub-tranquility", version = version::garage())] + ScrubTranquility { tranquility: u32 }, + /// 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 }, +} |