From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id E6E931FF0C0 for ; Wed, 21 Oct 2026 11:00:39 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 079872176A; Wed, 21 Oct 2026 10:59:45 +0200 (CEST) From: Dominik Rusovac To: pve-devel@lists.proxmox.com Subject: [PATCH pve-cluster 15/15] fix #7993: datacenter config: add ha-auto-rebalance-{cpu,mem}-weight Date: Wed, 21 Oct 2026 10:59:32 +0200 Message-ID: <20261021085932.1196302-16-d.rusovac@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021085932.1196302-1-d.rusovac@proxmox.com> References: <20261021085932.1196302-1-d.rusovac@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1792573178148 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.096 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: OKDTBELLW7GECAAP56TVQGBDL5MTL2T4 X-Message-ID-Hash: OKDTBELLW7GECAAP56TVQGBDL5MTL2T4 X-MailFrom: d.rusovac@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Add weights for controlling how much balancing out the CPU load, respectively, memory usage, of nodes should be prioritized. Signed-off-by: Dominik Rusovac --- src/PVE/DataCenterConfig.pm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/PVE/DataCenterConfig.pm b/src/PVE/DataCenterConfig.pm index 004122e..19dec7c 100644 --- a/src/PVE/DataCenterConfig.pm +++ b/src/PVE/DataCenterConfig.pm @@ -78,6 +78,22 @@ EODESC description => "The minimum relative improvement in cluster node imbalance," . " in percent, to commit to a resource balancing migration.", }, + 'ha-auto-rebalance-cpu-weight' => { + type => 'integer', + optional => 1, + minimum => 0, + requires => 'ha-auto-rebalance', + description => "The weight controlling how much balancing out" + . " the CPU load of nodes should be prioritized.", + }, + 'ha-auto-rebalance-mem-weight' => { + type => 'integer', + optional => 1, + minimum => 0, + requires => 'ha-auto-rebalance', + description => "The weight controlling how much balancing out" + . " the memory usage of nodes should be prioritized", + }, }; my $migration_format = { -- 2.47.3