all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Jakob Klocker <j.klocker@proxmox.com>, pdm-devel@lists.proxmox.com
Subject: Re: [PATCH proxmox-datacenter-manager 1/2] fix #7731: metric collection: fetch large PVE clusters node by node
Date: Mon, 30 Nov 2026 02:05:11 +0100	[thread overview]
Message-ID: <3278ee5b-95a3-4477-90de-e863359340ef@proxmox.com> (raw)
In-Reply-To: <20261126160707.333024-2-j.klocker@proxmox.com>

Am 26.11.26 um 17:09 schrieb Jakob Klocker:
> On larger clusters, a single cluster-wide /cluster/metrics/export
> request can take longer than pveproxy's 30 second request timeout, as
> the node handling it fetches the metrics of all other cluster members
> one after another. The reporter [0] measured ~2m40s for a 25-node
> cluster, so no metrics were collected for such clusters at all.

FYI: I explicitly decided against this in the past. For both this
here, and also bulk guest actions, for the former the export endpoint
was explicitly used and for the latter we added cluster-wide bulk
action endpoint.

The underlying problem is, that it just isn't yet made performant
enough, but that's just an implementation detail and can be improved.
We should absolutely not switch to bombarding the remotes with per
node requests, this solve nothing and only "kicks the can down the
road" so to say. Because it's still just inefficient, but now you're
also ensuring that the Proxmox API/pveproxy can go down and buckle
under the load more easily. The idea here would be to use an event and
string the responses directly, avoiding as much intermediate processing
as possible to bring our upper end of setups that we want to at least
support (say 100 nodes x 1000 guest each for a remote) down from the
minutes range to seconds, and that while also reducing head-of-line
blocking (i.e., where other requests got starved and blocked).

I mentioned this offlist end of last week to you, but I then needed a
bit longer to flesh it out. Anyway it's on the list now [0], and while
it's a bit of code but IMO more than worth it given that it gains most
of the perf through being way more efficient. Would be nice to get
some testing/feedback here.

[0]: https://lore.proxmox.com/pve-devel/20261130010113.2166775-1-t.lamprecht@proxmox.com/





  parent reply	other threads:[~2026-11-30  1:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 16:07 [PATCH proxmox-datacenter-manager 0/2] fix #7731: metric collection: fetch large PVE clusters node by node Jakob Klocker
2026-11-26 16:07 ` [PATCH proxmox-datacenter-manager 1/2] " Jakob Klocker
2026-11-27  9:54   ` Lukas Wagner
2026-11-30  1:05   ` Thomas Lamprecht [this message]
2026-11-26 16:07 ` [PATCH proxmox-datacenter-manager 2/2] metric collection: add tests for fetching " Jakob Klocker
2026-11-27  9:46   ` Lukas Wagner
2026-11-27 14:05 ` superseded: [PATCH proxmox-datacenter-manager 0/2] fix #7731: metric collection: fetch large " 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=3278ee5b-95a3-4477-90de-e863359340ef@proxmox.com \
    --to=t.lamprecht@proxmox.com \
    --cc=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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal