From: Jakob Klocker <j.klocker@proxmox.com>
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 [thread overview]
Message-ID: <20261127140358.205440-1-j.klocker@proxmox.com> (raw)
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
next reply other threads:[~2026-11-27 14:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 14:03 Jakob Klocker [this message]
2026-11-27 14:03 ` [PATCH proxmox-datacenter-manager v2 1/2] connection: allow creating PVE clients with a custom request timeout Jakob Klocker
2026-11-27 14:03 ` [PATCH proxmox-datacenter-manager v2 2/2] fix #7731: metric collection: allow 5 minutes for PVE metric requests Jakob Klocker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261127140358.205440-1-j.klocker@proxmox.com \
--to=j.klocker@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.