From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 09AEC1FF13E for ; Fri, 17 Apr 2026 11:26:36 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id DAF081B764; Fri, 17 Apr 2026 11:26:35 +0200 (CEST) From: Christian Ebner To: pbs-devel@lists.proxmox.com Subject: [PATCH proxmox v6 01/15] pbs api types: add `worker-threads` to sync job config Date: Fri, 17 Apr 2026 11:26:07 +0200 Message-ID: <20260417092621.455374-2-c.ebner@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260417092621.455374-1-c.ebner@proxmox.com> References: <20260417092621.455374-1-c.ebner@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1776417912548 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.070 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: IFRBCFMPT5ZNM5F25IGQ6PDLYXNNBJDA X-Message-ID-Hash: IFRBCFMPT5ZNM5F25IGQ6PDLYXNNBJDA X-MailFrom: c.ebner@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Backup Server development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Allow to specify the number of concurrent worker threads used to sync groups for sync jobs. Values can range from the current 1 to 32, although higher number of threads will saturate with respect to performance improvements. Signed-off-by: Christian Ebner --- changes since version 5: - no changes pbs-api-types/src/jobs.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pbs-api-types/src/jobs.rs b/pbs-api-types/src/jobs.rs index 7e6dfb94..c4e6dda6 100644 --- a/pbs-api-types/src/jobs.rs +++ b/pbs-api-types/src/jobs.rs @@ -88,6 +88,11 @@ pub const VERIFY_JOB_VERIFY_THREADS_SCHEMA: Schema = threads_schema( 4, ); +pub const SYNC_WORKER_THREADS_SCHEMA: Schema = threads_schema( + "The number of worker threads to process groups in parallel.", + 1, +); + #[api( properties: { "next-run": { @@ -664,6 +669,10 @@ pub const UNMOUNT_ON_SYNC_DONE_SCHEMA: Schema = type: SyncDirection, optional: true, }, + "worker-threads": { + schema: SYNC_WORKER_THREADS_SCHEMA, + optional: true, + }, } )] #[derive(Serialize, Deserialize, Clone, Updater, PartialEq)] @@ -709,6 +718,8 @@ pub struct SyncJobConfig { pub unmount_on_done: Option, #[serde(skip_serializing_if = "Option::is_none")] pub sync_direction: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub worker_threads: Option, } impl SyncJobConfig { -- 2.47.3