aboutsummaryrefslogtreecommitdiff
path: root/src/garage/admin.rs
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/admin.rs
parent5e8baa433d743a06ab3ee90f375f24c3c36fc236 (diff)
downloadgarage-5d4b937a00882b9bf8b36f7430f3d1fe9db58903.tar.gz
garage-5d4b937a00882b9bf8b36f7430f3d1fe9db58903.zip
Ability to have up to 4 concurrently working resync workers
Diffstat (limited to 'src/garage/admin.rs')
-rw-r--r--src/garage/admin.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/garage/admin.rs b/src/garage/admin.rs
index 9f4764df..76261050 100644
--- a/src/garage/admin.rs
+++ b/src/garage/admin.rs
@@ -847,6 +847,14 @@ impl AdminRpcHandler {
.await;
Ok(AdminRpc::Ok("Scrub tranquility updated".into()))
}
+ WorkerSetCmd::ResyncNWorkers { n_workers } => {
+ self.garage
+ .block_manager
+ .resync
+ .set_n_workers(n_workers)
+ .await?;
+ Ok(AdminRpc::Ok("Number of resync workers updated".into()))
+ }
WorkerSetCmd::ResyncTranquility { tranquility } => {
self.garage
.block_manager