aboutsummaryrefslogtreecommitdiff
path: root/src/garage/cli
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-09-07 18:13:27 +0200
committerAlex Auvolat <alex@adnab.me>2022-09-07 18:13:27 +0200
commit8adc6547132412ef7a43ea4172b2d627c19c38a7 (patch)
treeb026cc5a398b17120f21d4e490901032da573531 /src/garage/cli
parent107853334bd045e145e3149c63172a9c0260b8db (diff)
parent9f5433db821612fc462800c7532418522d6dbe2a (diff)
downloadgarage-8adc6547132412ef7a43ea4172b2d627c19c38a7.tar.gz
garage-8adc6547132412ef7a43ea4172b2d627c19c38a7.zip
Merge branch 'main' into improve-deps
Diffstat (limited to 'src/garage/cli')
-rw-r--r--src/garage/cli/structs.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/garage/cli/structs.rs b/src/garage/cli/structs.rs
index 018c8119..105e17f8 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 },
+}