[pbs-devel] [RFC proxmox v2 4/4] rest-server: increase task index lock timeout to 15s

Fabian Grünbichler f.gruenbichler at proxmox.com
Mon Dec 2 14:04:12 CET 2024


this lock can be quite contended, until the surrounding code is properly split
to reduce this contention it should help to give the worker task
creation/cleanup code a bit more breathing room.

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 proxmox-rest-server/src/worker_task.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxmox-rest-server/src/worker_task.rs b/proxmox-rest-server/src/worker_task.rs
index 74828855..3806159c 100644
--- a/proxmox-rest-server/src/worker_task.rs
+++ b/proxmox-rest-server/src/worker_task.rs
@@ -139,7 +139,7 @@ impl WorkerTaskSetup {
             .clone()
             .perm(nix::sys::stat::Mode::from_bits_truncate(0o660));
 
-        let timeout = std::time::Duration::new(10, 0);
+        let timeout = std::time::Duration::new(15, 0);
 
         let file =
             proxmox_sys::fs::open_file_locked(&self.task_lock_fn, timeout, exclusive, options)?;
-- 
2.39.5





More information about the pbs-devel mailing list