diff options
author | Alex Auvolat <alex@adnab.me> | 2022-09-06 22:13:01 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-09-06 22:13:01 +0200 |
commit | 6b958979bd898a576ee9c1021cc908b3ec75ffc7 (patch) | |
tree | 72e35a3b12c616965bcdf60bf18d1c0db29955ba /src/garage/cli/structs.rs | |
parent | 4024822585783368993ac26807d076d8c312bb35 (diff) | |
parent | d23b3a14fc28de164080e762f0e97e6cbc868940 (diff) | |
download | garage-6b958979bd898a576ee9c1021cc908b3ec75ffc7.tar.gz garage-6b958979bd898a576ee9c1021cc908b3ec75ffc7.zip |
Merge branch 'lx-perf-improvements' into netapp-stream-body
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 }, +} |