all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [RFC PATCH-SERIES cluster/ha-manager/manager/proxmox v3 0/6] clamp load imbalance to unit interval
@ 2026-04-30 11:48 Dominik Rusovac
  2026-04-30 11:48 ` [PATCH proxmox v3 1/6] resource-scheduling: clamp imbalance value " Dominik Rusovac
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Dominik Rusovac @ 2026-04-30 11:48 UTC (permalink / raw)
  To: pve-devel

# TL;DR
clamp load imbalance to value between 0 and 1, and display the value as
percentage in HA Status panel of PVE UI.

NOTE: This needs a version bump for proxmox-perl-rs, because the changes in
proxmox-resource-scheduling need to be propagated through those bindings.

# Details
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.

# Summary of Changes
This series:
- represents load imbalance as a value between 0 and 1;
- adds a maximum value of 1.0 for load scheduler options; and
- integrates the load imbalance value within the HA status endpoint;
  this is to provide feedback on the prevailing load imbalance in the PVE UI.

# Refs
[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


proxmox:

Dominik Rusovac (1):
  resource-scheduling: clamp imbalance value to unit interval

 proxmox-resource-scheduling/src/scheduler.rs  | 47 +++++++++++--------
 .../tests/scheduler.rs                        |  8 ++--
 2 files changed, 32 insertions(+), 23 deletions(-)


pve-manager:

Dominik Rusovac (1):
  ui: from/CRSOptions: add maximum for threshold

 www/manager6/form/CRSOptions.js | 1 +
 1 file changed, 1 insertion(+)


pve-ha-manager:

Dominik Rusovac (3):
  test: re-adjust logged imbalance values to corrected calculation
  manager: add load imbalance to status
  api: status: add load imbalance to status

 src/PVE/API2/HA/Status.pm                     | 11 +++++-
 src/PVE/HA/Manager.pm                         |  1 +
 .../log.expect                                |  4 +-
 .../log.expect                                | 38 +++++++++----------
 .../log.expect                                |  4 +-
 .../log.expect                                | 29 +++++---------
 .../log.expect                                |  2 +-
 .../log.expect                                |  2 +-
 .../log.expect                                |  4 +-
 .../log.expect                                |  4 +-
 .../log.expect                                |  4 +-
 .../log.expect                                | 22 +----------
 12 files changed, 53 insertions(+), 72 deletions(-)


pve-cluster:

Dominik Rusovac (1):
  datacenter config: add maxima for load scheduler options

 src/PVE/DataCenterConfig.pm | 2 ++
 1 file changed, 2 insertions(+)


Summary over all repositories:
  16 files changed, 88 insertions(+), 95 deletions(-)

-- 
Generated by murpp 0.11.0




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

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

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-30 11:48 [RFC PATCH-SERIES cluster/ha-manager/manager/proxmox v3 0/6] clamp load imbalance to unit interval Dominik Rusovac
2026-04-30 11:48 ` [PATCH proxmox v3 1/6] resource-scheduling: clamp imbalance value " Dominik Rusovac
2026-04-30 11:48 ` [PATCH pve-manager v3 2/6] ui: from/CRSOptions: add maximum for threshold Dominik Rusovac
2026-04-30 11:48 ` [PATCH pve-ha-manager v3 3/6] test: re-adjust logged imbalance values to corrected calculation Dominik Rusovac
2026-04-30 11:48 ` [PATCH pve-ha-manager v3 4/6] manager: add load imbalance to status Dominik Rusovac
2026-04-30 11:48 ` [PATCH pve-ha-manager v3 5/6] api: status: " Dominik Rusovac
2026-04-30 11:48 ` [PATCH pve-cluster v3 6/6] datacenter config: add maxima for load scheduler options Dominik Rusovac

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