From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id D41BE1FF13A for ; Wed, 13 May 2026 12:47:19 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 89412834B; Wed, 13 May 2026 12:47:17 +0200 (CEST) From: Dominik Rusovac To: pve-devel@lists.proxmox.com Subject: [PATCH-SERIES ha-manager/manager v2 0/3] fix #7557: introduce 'auto-rebalance' property Date: Wed, 13 May 2026 12:46:54 +0200 Message-ID: <20260513104657.1105858-1-d.rusovac@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1778669222906 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.344 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment 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: LNGDW32TTGRGK7LYRNECQG6IYJS4276M X-Message-ID-Hash: LNGDW32TTGRGK7LYRNECQG6IYJS4276M 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: # TL;DR Add 'auto-rebalance' property to HA resources config, which gives users control over which HA resources may be moved by dynamic CRS during automatic rebalancing. # Details The 'auto-rebalance' flag is set to true by default. As requested by [0], disabling 'auto-rebalance' for some HA resource, say vm:100, means that vm:100 will be disregarded as a migration candidate during auto-rebalancing. Any HA resource with a positive affinity for vm:100 will be disregarded too. # Summary of Changes This series: - introduces property to control whether an HA resource may be migrated during automatic rebalancing; - adds corresponding flag to PVE UI. # Refs [0] https://bugzilla.proxmox.com/show_bug.cgi?id=7557 NOTE: changes since v1 are given per patch in notes pve-manager: Dominik Rusovac (1): ui: ha: add auto-rebalance flag www/manager6/ha/ResourceEdit.js | 14 ++++++++++++++ www/manager6/ha/Resources.js | 6 ++++++ www/manager6/ha/StatusView.js | 4 ++++ 3 files changed, 24 insertions(+) pve-ha-manager: Dominik Rusovac (2): manager: set service config value in self fix #7557: introduce 'auto-rebalance' property src/PVE/API2/HA/Resources.pm | 6 ++ src/PVE/API2/HA/Status.pm | 11 ++- src/PVE/HA/Config.pm | 2 + src/PVE/HA/Manager.pm | 38 ++++---- src/PVE/HA/Resources.pm | 6 ++ src/PVE/HA/Resources/PVECT.pm | 1 + src/PVE/HA/Resources/PVEVM.pm | 1 + src/PVE/HA/Sim/Hardware.pm | 1 + src/test/test_resource_bundles.pl | 142 ++++++++++++++++++++++++++++-- 9 files changed, 187 insertions(+), 21 deletions(-) Summary over all repositories: 12 files changed, 211 insertions(+), 21 deletions(-) -- Generated by murpp 0.11.0