all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Rusovac <d.rusovac@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH pve-ha-manager v3 4/6] manager: add load imbalance to status
Date: Thu, 30 Apr 2026 13:48:43 +0200	[thread overview]
Message-ID: <20260430114845.151174-5-d.rusovac@proxmox.com> (raw)
In-Reply-To: <20260430114845.151174-1-d.rusovac@proxmox.com>

Signed-off-by: Dominik Rusovac <d.rusovac@proxmox.com>
---

Notes:
    no changes since v2

 src/PVE/HA/Manager.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/PVE/HA/Manager.pm b/src/PVE/HA/Manager.pm
index b69a6bb..ba26fbf 100644
--- a/src/PVE/HA/Manager.pm
+++ b/src/PVE/HA/Manager.pm
@@ -285,6 +285,7 @@ sub flush_master_status {
     $ms->{node_status} = $ns->{status};
     $ms->{service_status} = $ss;
     $ms->{timestamp} = $haenv->get_time();
+    $ms->{imbalance} = $self->{online_node_usage}->calculate_node_imbalance();
 
     $haenv->write_manager_status($ms);
 }
-- 
2.47.3





  parent reply	other threads:[~2026-04-30 11:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Dominik Rusovac [this message]
2026-04-30 11:48 ` [PATCH pve-ha-manager v3 5/6] api: status: add load imbalance to status Dominik Rusovac
2026-04-30 11:48 ` [PATCH pve-cluster v3 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=20260430114845.151174-5-d.rusovac@proxmox.com \
    --to=d.rusovac@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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal