all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH proxmox-datacenter-manager v2 0/2] fix #7731: metric collection: allow 5 minutes for PVE metric requests
@ 2026-11-27 14:03 Jakob Klocker
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Jakob Klocker @ 2026-11-27 14:03 UTC (permalink / raw)
  To: pdm-devel

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-27 14:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 14:03 [PATCH proxmox-datacenter-manager v2 0/2] fix #7731: metric collection: allow 5 minutes for PVE metric requests Jakob Klocker
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

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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal