[pve-devel] [PATCH-SERIES proxmox-{resource-scheduling, perl-rs}] fix scoring issue with overcommitted node

Fiona Ebner f.ebner at proxmox.com
Tue Mar 21 13:33:41 CET 2023


The current algorithm is blind in cases where the static node stats
are the same and there is (at least) one node that is overcommitted
when compared to the others.

The problem is that using the linear average produces the same values
for the alternatives (except for the overcommitted node). Fix it by
using a nonlinear average.

The patch proxmox-perl-rs 2/2 requires a build-dependency bump for
proxmox-resource-scheduling.


proxmox-resource-scheduling:

Fiona Ebner (2):
  pve ha: fix scoring issue when a node is overcommitted compared to
    others
  pve ha: fix typo in comment

 src/pve_static.rs | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)


proxmox-perl-rs:

Fiona Ebner (2):
  pve: test: resource scheduling: use dedicated functions for tests
  pve: test: resource scheduling: add test with overcommitted node

 pve-rs/test/resource_scheduling.pl | 102 +++++++++++++++++++++--------
 1 file changed, 73 insertions(+), 29 deletions(-)

-- 
2.30.2






More information about the pve-devel mailing list