From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 71AEA1FF0B4 for ; Fri, 27 Nov 2026 15:04:31 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 949FD21725; Fri, 27 Nov 2026 15:04:27 +0100 (CET) From: Jakob Klocker To: pdm-devel@lists.proxmox.com Subject: [PATCH proxmox-datacenter-manager v2 0/2] fix #7731: metric collection: allow 5 minutes for PVE metric requests Date: Fri, 27 Nov 2026 15:03:56 +0100 Message-ID: <20261127140358.205440-1-j.klocker@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1795788262122 X-SPAM-LEVEL: Spam detection results: 0 AWL 1.072 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) 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 Message-ID-Hash: F45GAO6IRQTQVRGS5UMPUJV5N3X26WVP X-Message-ID-Hash: F45GAO6IRQTQVRGS5UMPUJV5N3X26WVP X-MailFrom: j.klocker@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 Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Exporting the full metric history of a large PVE cluster takes minutes (2m43s on the reporter's 25-node cluster [0][1]), but PDM gives up on a request to a remote after 60 seconds and repeats it on every other endpoint, until all of them are marked unreachable. No metrics are ever collected for such a cluster. This series uses a separate client with a 5 minute request timeout for fetching PVE metrics. All other requests keep the regular 60 seconds, so they still fail over quickly when a node does not answer. v1 assumed that pveproxy cuts such requests off after 30 seconds, which isn't the case: pveproxy does not limit this request, the timeout is PDM's own. With the export handler delayed by 90 seconds on a test cluster, PDM gave up after 60 seconds with the message from the bug report, while pveproxy still answered the request in full after 90 seconds. Testing: with the export handler delayed by 180 seconds, both manual and regular, timer-driven metric collections now succeed after ~180s. Changes since v1: - Drop fetching large clusters node by node, use a longer request timeout for the metric collection instead. This fixes the reported issue for now. As a follow-up, the export endpoint in PVE will fetch the metrics of the other cluster nodes concurrently, which should shorten such requests. The longer timeout may still be needed for the initial import of a large cluster's full metric history. [0] https://bugzilla.proxmox.com/show_bug.cgi?id=7731 [1] https://forum.proxmox.com/threads/getting-client-timeouts-in-pdm-system-log.184344/#post-858021 proxmox-datacenter-manager: Jakob Klocker (2): connection: allow creating PVE clients with a custom request timeout fix #7731: metric collection: allow 5 minutes for PVE metric requests server/src/connection.rs | 49 ++++++++++++++++--- .../remote_collection_task.rs | 7 ++- 2 files changed, 47 insertions(+), 9 deletions(-) Summary over all repositories: 2 files changed, 47 insertions(+), 9 deletions(-) -- Generated by murpp 0.12.0