all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH-SERIES ha-manager v2 00/10] include non-HA resources in usage accounting
@ 2026-03-19 16:33 Daniel Kral
  2026-03-19 16:33 ` [PATCH ha-manager v2 01/10] rename static node stats to be consistent with similar interfaces Daniel Kral
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Daniel Kral @ 2026-03-19 16:33 UTC (permalink / raw)
  To: pve-devel

This series is split out from [0] to make the static/dynamic load
balancer series a little more straight forward to reason through.

This series adds any running non-HA resource into the existing basic and
static usage scheduler accounting to base decisions on the usage of the
whole cluster instead of just the HA resources.

For clusters where every guest is configured as a HA resource nothing
should change.

I tested a few simple cases in a 3 node cluster for both the basic and
static usage which are variations of:

- 1 running HA resource on each node, starting them on any node (with
  homogeneous nodes and guests) will rebalance them on the
  alphabetically first node as before
- 1 running HA resource on node1, running 3 non-HA resources on node2,
  starting another HA resource on node1 will rebalance it to node3
- 3 non-HA resources on node1, starting a HA resource on node1 will
  rebalance it to node2
- non-running HA and non-HA resources are excluded from the usage
  accounting
- starting non-HA resources doesn't have any effect obviously

[0] https://lore.proxmox.com/pve-devel/20260217141437.584852-1-d.kral@proxmox.com/

Daniel Kral (10):
  rename static node stats to be consistent with similar interfaces
  resources: remove redundant load_config fallback for static config
  remove redundant service_node and migration_target parameter
  factor out common pve to ha resource type mapping
  derive static service stats while filling the service stats repository
  test: make static service usage explicit for all resources
  make static service stats indexable by sid
  move static service stats repository to PVE::HA::Usage::Static
  usage: augment service stats with node and state information
  include running non-HA resources in the scheduler's accounting

 src/PVE/HA/Config.pm                          |  8 +-
 src/PVE/HA/Env.pm                             | 16 ++--
 src/PVE/HA/Env/PVE2.pm                        | 81 +++++++++++++------
 src/PVE/HA/Manager.pm                         | 16 +++-
 src/PVE/HA/Resources.pm                       |  4 +-
 src/PVE/HA/Resources/PVECT.pm                 |  7 +-
 src/PVE/HA/Resources/PVEVM.pm                 |  7 +-
 src/PVE/HA/Sim/Env.pm                         | 16 ++--
 src/PVE/HA/Sim/Hardware.pm                    | 56 ++++++++-----
 src/PVE/HA/Sim/Resources.pm                   | 17 ----
 src/PVE/HA/Tools.pm                           | 23 ++++--
 src/PVE/HA/Usage.pm                           | 12 ++-
 src/PVE/HA/Usage/Basic.pm                     |  6 +-
 src/PVE/HA/Usage/Static.pm                    | 43 +++-------
 .../hardware_status                           |  6 +-
 .../hardware_status                           |  6 +-
 .../hardware_status                           | 10 +--
 .../hardware_status                           |  6 +-
 .../static_service_stats                      | 52 +++++++++++-
 .../hardware_status                           |  6 +-
 .../static_service_stats                      |  9 ++-
 src/test/test-crs-static1/hardware_status     |  6 +-
 src/test/test-crs-static2/hardware_status     | 10 +--
 src/test/test-crs-static3/hardware_status     |  6 +-
 src/test/test-crs-static4/hardware_status     |  6 +-
 src/test/test-crs-static5/hardware_status     |  6 +-
 26 files changed, 260 insertions(+), 181 deletions(-)

-- 
2.47.3





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

end of thread, other threads:[~2026-03-19 16:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-19 16:33 [PATCH-SERIES ha-manager v2 00/10] include non-HA resources in usage accounting Daniel Kral
2026-03-19 16:33 ` [PATCH ha-manager v2 01/10] rename static node stats to be consistent with similar interfaces Daniel Kral
2026-03-19 16:33 ` [PATCH ha-manager v2 02/10] resources: remove redundant load_config fallback for static config Daniel Kral
2026-03-19 16:33 ` [PATCH ha-manager v2 03/10] remove redundant service_node and migration_target parameter Daniel Kral
2026-03-19 16:33 ` [PATCH ha-manager v2 04/10] factor out common pve to ha resource type mapping Daniel Kral
2026-03-19 16:33 ` [PATCH ha-manager v2 05/10] derive static service stats while filling the service stats repository Daniel Kral
2026-03-19 16:33 ` [PATCH ha-manager v2 06/10] test: make static service usage explicit for all resources Daniel Kral
2026-03-19 16:33 ` [PATCH ha-manager v2 07/10] make static service stats indexable by sid Daniel Kral
2026-03-19 16:33 ` [PATCH ha-manager v2 08/10] move static service stats repository to PVE::HA::Usage::Static Daniel Kral
2026-03-19 16:33 ` [PATCH ha-manager v2 09/10] usage: augment service stats with node and state information Daniel Kral
2026-03-19 16:34 ` [PATCH ha-manager v2 10/10] include running non-HA resources in the scheduler's accounting Daniel Kral
2026-03-19 16:56 ` [PATCH-SERIES ha-manager v2 00/10] include non-HA resources in usage accounting Daniel Kral

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