From: "Dominik Rusovac" <d.rusovac@proxmox.com>
To: "Daniel Kral" <d.kral@proxmox.com>, <pve-devel@lists.proxmox.com>
Subject: Re: [PATCH proxmox v2 1/6] resource-scheduling: clamp imbalance value to unit interval
Date: Thu, 30 Apr 2026 10:33:14 +0200 [thread overview]
Message-ID: <DI6CMPM588DR.1I7A0214HHVH9@proxmox.com> (raw)
In-Reply-To: <DI6BO454X69O.3W55A44HFZA1M@proxmox.com>
On Thu Apr 30, 2026 at 9:48 AM CEST, Daniel Kral wrote:
> On Wed Apr 29, 2026 at 2:20 PM CEST, Dominik Rusovac wrote:
>> The currently used load imbalance value is given as the so-called
>> coefficient of variation (CV), a value that may exceed 1. As such, the
>> CV value alone lacks meaning. A CV value of 0.0 means no imbalance, but
>> what does a value of, say, 1.7 mean?
>>
>> Relative to the number of nodes in a cluster, it is possible to
>> determine the upper bound of the CV value [0][1]. By dividing the CV
>> value by its upper bound, the load imbalance can be represented as a
>> value that varies between 0 and 1. Expressing the CV as a percentage
>> makes the concept of load imbalance easier to interpret.
>>
>> Re-adjust hardcoded imbalance values within tests accordingly.
>>
>> [0] https://repositorio.ipbeja.pt/server/api/core/bitstreams/8ed9a444-dbe0-402f-9d2f-90c5bf6e418c/content
>> [1] https://stats.stackexchange.com/questions/18621/maximum-value-of-coefficient-of-variation-for-bounded-data-set
>>
>> Signed-off-by: Dominik Rusovac <d.rusovac@proxmox.com>
>> ---
>>
>> Notes:
>> changes since v1:
>> * squash commit that re-adjusts tests into this one
>> * back to multiple `as f64` casts of node_count variable
>> * go from if-else to early-return
>> * make comment above early return clause more explanatory
>> * re-order cv and max_cv bindings
>> * add comment with ref relating to computation of max_cv
>>
[snip]
>> + let cv = load_sd / load_mean;
>> +
>
> small whitespace error, could also be fixed on apply though
>
in fact, the whitespace is intentional here
since you asked to add a ref relating to max_cv, I decided to isolate
the binding with its respective comment, which imo increases readability
can be removed on apply tho, if it's considered disturbing
[snip]
next prev parent reply other threads:[~2026-04-30 8:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-29 12:20 [RFC PATCH-SERIES cluster/ha-manager/manager/proxmox v2 0/6] clamp load imbalance to unit interval Dominik Rusovac
2026-04-29 12:20 ` [PATCH proxmox v2 1/6] resource-scheduling: clamp imbalance value " Dominik Rusovac
2026-04-30 7:48 ` Daniel Kral
2026-04-30 8:33 ` Dominik Rusovac [this message]
2026-04-29 12:20 ` [PATCH pve-manager v2 2/6] ui: from/CRSOptions: add maximum for threshold Dominik Rusovac
2026-04-29 12:20 ` [PATCH pve-ha-manager v2 3/6] test: re-adjust logged imbalance values to corrected calculation Dominik Rusovac
2026-04-29 12:20 ` [PATCH pve-ha-manager v2 4/6] manager: add load imbalance to status Dominik Rusovac
2026-04-29 12:20 ` [PATCH pve-ha-manager v2 5/6] api: status: " Dominik Rusovac
2026-04-30 7:46 ` Daniel Kral
2026-04-30 8:21 ` Dominik Rusovac
2026-04-29 12:20 ` [PATCH pve-cluster v2 6/6] datacenter config: add maxima for load scheduler options Dominik Rusovac
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=DI6CMPM588DR.1I7A0214HHVH9@proxmox.com \
--to=d.rusovac@proxmox.com \
--cc=d.kral@proxmox.com \
--cc=pve-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.