public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: "Lukas Wagner" <l.wagner@proxmox.com>
To: "Dominik Csapak" <d.csapak@proxmox.com>,
	"Proxmox Datacenter Manager development discussion"
	<pdm-devel@lists.proxmox.com>
Subject: Re: [pdm-devel] [PATCH proxmox-datacenter-manager v6 00/23] metric collection improvements (concurrency, API, CLI)
Date: Mon, 25 Aug 2025 10:43:57 +0200	[thread overview]
Message-ID: <DCBDJSZZKON9.2F02BUQQJ7GCO@proxmox.com> (raw)
In-Reply-To: <a0042de6-793e-4691-9731-bb8da959fd03@proxmox.com>

On Fri Aug 22, 2025 at 1:51 PM CEST, Dominik Csapak wrote:
> aside from the issue with the last 10 minute gap of data in the hourly
> view, code LGTM and tested fine, did not notice anything else off
>
> Some patches (especially the last 3) could possibly be squashed in to
> earlier patches (no biggie though)

Will do, if I can do it without large conflicts while rebasing.

>
> Since this is a rather large series, I'd like to see a reviewed-by from
> someone else before applying, since the reviewed-by from maximiliano
> came in at v2 i think, and there were some noticeable changes since
> then.
>
> With that said, consider this round
>
> Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
> Tested-by: Dominik Csapak <d.csapak@proxmox.com>


[copied from your other reponse]:
On Fri Aug 22, 2025 at 2:49 PM CEST, Dominik Csapak wrote:
> ah one thing i forgot to mention:
>
> i'd probably favor doing it the way you described here:
>
>
>  > - Should `GET /remotes/<remote>/metric-collection-rrddata` be
>  >   just `rrddata`?
>  >   not sure if we are going to add any other PDM-native per-remote
>  >   metrics and whether we want to return that from the same API call
>  >   as this...
>
> i think it's fine to mix it here

Alright, I'll rename it to just `rrddata` then.

>
> also the  /metric-collection/rrddata could be merged
> with a (not yet implemented) rrddata endpoint in the /nodes/localhost path

Will do!

>
> i guess we want to expose some pdm host rrddata sooner or later anyway
> there we can include this too?

[copied from your other response]:
On Fri Aug 22, 2025 at 1:27 PM CEST, Dominik Csapak wrote:
>> We also could trigger an out-of-schedule metric collection for a remote
>> when the RRD graph calls the rrddata endpoint (the functions for
>> triggering the collection of a single remote are already there, albeit
>> non-blocking, so this would need some changes). Fetching the missing
>> data for a single remote should be fast enough any way. The rrddata
>> endpoint could have some timeout for waiting for the results of
>> collecting that single remote; if that one is exceeded we don't wait
>> until the collection results are done but simply return the existing
>> data.
>> 
>
> The problem is actually just the 'hourly' graphs, since there the 
> interval is so small one noticed the 10 minutes quite often.
>
> All others (daily,monthly, etc.) don't exhibit the same problem
>
> so i'd say if we can fetch missing data on-the-fly in the api call
> for hourly calls, it would be good enough

Alright, will try to implement something akin to what I've described for
v7.


_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel


  parent reply	other threads:[~2025-08-25  8:43 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-21  9:52 Lukas Wagner
2025-08-21  9:52 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 01/23] metric collection: split top_entities split into separate module Lukas Wagner
2025-08-21  9:52 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 02/23] metric collection: save metric data to RRD in separate task Lukas Wagner
2025-08-21  9:52 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 03/23] metric collection: rework metric poll task Lukas Wagner
2025-08-21  9:53 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 04/23] metric collection: persist state after metric collection Lukas Wagner
2025-08-21  9:53 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 05/23] metric collection: skip if last_collection < MIN_COLLECTION_INTERVAL Lukas Wagner
2025-08-21  9:53 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 06/23] metric collection: collect overdue metrics on startup/timer change Lukas Wagner
2025-08-21  9:53 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 07/23] metric collection: add tests for the fetch_remotes function Lukas Wagner
2025-08-21  9:53 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 08/23] metric collection: add test for fetch_overdue Lukas Wagner
2025-08-21  9:53 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 09/23] metric collection: pass rrd cache instance as function parameter Lukas Wagner
2025-08-21  9:53 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 10/23] metric collection: add test for rrd task Lukas Wagner
2025-08-21  9:53 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 11/23] metric collection: wrap rrd_cache::Cache in a struct Lukas Wagner
2025-08-21  9:53 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 12/23] metric collection: record remote response time in metric database Lukas Wagner
2025-08-21  9:53 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 13/23] metric collection: save time needed for collection run to RRD Lukas Wagner
2025-08-21  9:53 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 14/23] metric collection: periodically clean removed remotes from statefile Lukas Wagner
2025-08-21  9:53 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 15/23] api: add endpoint to trigger metric collection Lukas Wagner
2025-08-21  9:53 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 16/23] api: remotes: trigger immediate metric collection for newly added nodes Lukas Wagner
2025-08-21  9:53 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 17/23] api: add api for querying metric collection RRD data Lukas Wagner
2025-08-21  9:53 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 18/23] api: metric-collection: add status endpoint Lukas Wagner
2025-08-21  9:53 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 19/23] pdm-client: add metric collection API methods Lukas Wagner
2025-08-21  9:53 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 20/23] cli: add commands for metric-collection trigger and status Lukas Wagner
2025-08-21  9:53 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 21/23] metric collection: factor out handle_tick and handle_control_message fns Lukas Wagner
2025-08-21  9:53 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 22/23] metric collection: skip missed timer ticks Lukas Wagner
2025-08-21  9:53 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 23/23] metric collection: use JoinSet instead of joining from handles in a Vec Lukas Wagner
2025-08-21 12:53 ` [pdm-devel] [PATCH proxmox-datacenter-manager v6 00/23] metric collection improvements (concurrency, API, CLI) Dominik Csapak
2025-08-21 13:46   ` Lukas Wagner
2025-08-22 11:27     ` Dominik Csapak
2025-08-27  7:19   ` Thomas Lamprecht
2025-08-22 11:51 ` Dominik Csapak
2025-08-22 12:49   ` Dominik Csapak
2025-08-25  8:43   ` Lukas Wagner [this message]
2025-08-26 13:53 ` [pdm-devel] superseded: " Lukas Wagner

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=DCBDJSZZKON9.2F02BUQQJ7GCO@proxmox.com \
    --to=l.wagner@proxmox.com \
    --cc=d.csapak@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal