From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 8B5E35BBE8 for ; Wed, 8 Jul 2020 10:11:55 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 6F2112E120 for ; Wed, 8 Jul 2020 10:11:25 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 4BCD82E114 for ; Wed, 8 Jul 2020 10:11:24 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 437C542742 for ; Wed, 8 Jul 2020 10:04:28 +0200 (CEST) From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= To: pbs-devel@lists.proxmox.com Date: Wed, 8 Jul 2020 10:04:24 +0200 Message-Id: <20200708080424.1140125-1-f.gruenbichler@proxmox.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pbs-devel] [PATCH proxmox-backup] tasks: bump archive to 100k entries X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jul 2020 08:11:55 -0000 1000 are way too few, but it probably makes sense to make this value configurable in the future. Signed-off-by: Fabian Grünbichler --- or even think about encoding the datastore in the TaskInfo/UPID (almost all regular tasks are datastore specific), which would allow setting a default and per-datastore limit. src/server/worker_task.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/server/worker_task.rs b/src/server/worker_task.rs index 72c594e6..89c0e115 100644 --- a/src/server/worker_task.rs +++ b/src/server/worker_task.rs @@ -304,9 +304,10 @@ fn update_active_workers(new_upid: Option<&UPID>) -> Result, E // assemble list without duplicates // we include all active tasks, - // and fill up to 1000 entries with finished tasks + // and fill up to 100000 entries with finished tasks + // TODO: make configurable ? - let max = 1000; + let max = 100000; let mut task_hash = HashMap::new(); -- 2.20.1