From: Michael Ryom <Michael@RyomHerold.dk>
To: pve-devel@lists.proxmox.com
Cc: Michael Ryom <Michael@RyomHerold.dk>
Subject: [PATCH manager v2 13/14] ui: crs options: expose the auto-rebalance margin mode and cooldown
Date: Sun, 18 Oct 2026 14:45:57 +0200 [thread overview]
Message-ID: <20261018124559.24305-14-Michael@RyomHerold.dk> (raw)
In-Reply-To: <20261018124559.24305-1-Michael@RyomHerold.dk>
Add form fields for the ha-auto-rebalance-margin-mode and
ha-auto-rebalance-cooldown datacenter options. They follow the same
pattern as the existing auto-rebalance tuning fields, including being
disabled while automatic rebalancing is off.
As the unit of the margin now depends on the margin mode, drop the
percent sign from its label and show the unit in the mode selection
instead.
Signed-off-by: Michael Ryom <Michael@RyomHerold.dk>
---
www/manager6/form/CRSOptions.js | 35 ++++++++++++++++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/www/manager6/form/CRSOptions.js b/www/manager6/form/CRSOptions.js
index 84f6d506..bdf64177 100644
--- a/www/manager6/form/CRSOptions.js
+++ b/www/manager6/form/CRSOptions.js
@@ -117,7 +117,7 @@ Ext.define('PVE.form.CRSOptions', {
{
xtype: 'numberfield',
name: 'ha-auto-rebalance-margin',
- fieldLabel: gettext('Minimum Imbalance Improvement (%)'),
+ fieldLabel: gettext('Minimum Imbalance Improvement'),
emptyText: Proxmox.Utils.defaultText + ' (10)',
minValue: 0,
maxValue: 100,
@@ -126,6 +126,39 @@ Ext.define('PVE.form.CRSOptions', {
disabled: '{autoRebalancingDisabled}',
},
},
+ {
+ xtype: 'proxmoxKVComboBox',
+ name: 'ha-auto-rebalance-margin-mode',
+ fieldLabel: gettext('Improvement Mode'),
+ deleteEmpty: false,
+ value: '__default__',
+ comboItems: [
+ [
+ '__default__',
+ Proxmox.Utils.defaultText + ' (' + gettext('Relative') + ')',
+ ],
+ ['relative', gettext('Relative') + ' (%)'],
+ [
+ 'absolute',
+ gettext('Absolute') + ' (' + gettext('percentage points') + ')',
+ ],
+ ],
+ defaultValue: '__default__',
+ bind: {
+ disabled: '{autoRebalancingDisabled}',
+ },
+ },
+ {
+ xtype: 'numberfield',
+ name: 'ha-auto-rebalance-cooldown',
+ fieldLabel: gettext('Cooldown (s)'),
+ emptyText: Proxmox.Utils.defaultText + ' (0)',
+ minValue: 0,
+ step: 60,
+ bind: {
+ disabled: '{autoRebalancingDisabled}',
+ },
+ },
],
},
],
--
2.47.3
next prev parent reply other threads:[~2026-10-18 12:48 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-18 12:45 [PATCH cluster/ha-manager/manager/docs v2 00/14] auto rebalance: fix failure retry loop and oscillation Michael Ryom
2026-10-18 12:45 ` [PATCH cluster v2 01/14] datacenter config: add HA auto-rebalance margin mode and cooldown Michael Ryom
2026-10-18 12:45 ` [PATCH ha-manager v2 02/14] manager: factor out checking whether a resource motion is queued or running Michael Ryom
2026-10-18 12:45 ` [PATCH ha-manager v2 03/14] test: add auto rebalance test cases for failing rebalance motions Michael Ryom
2026-10-18 12:45 ` [PATCH ha-manager v2 04/14] fix #8059: manager: auto rebalance: do not retry failed rebalance motions right away Michael Ryom
2026-10-18 12:45 ` [PATCH ha-manager v2 05/14] test: add auto rebalance test case for an immediate reverse motion Michael Ryom
2026-10-18 12:45 ` [PATCH ha-manager v2 06/14] manager: auto rebalance: add optional cooldown for moved resources Michael Ryom
2026-10-18 12:45 ` [PATCH ha-manager v2 07/14] test: add auto rebalance test case for a marginal absolute improvement Michael Ryom
2026-10-18 12:45 ` [PATCH ha-manager v2 08/14] manager: auto rebalance: allow an absolute margin Michael Ryom
2026-10-18 12:45 ` [PATCH ha-manager v2 09/14] sim: hardware: report actual running state in cluster service stats Michael Ryom
2026-10-18 12:45 ` [PATCH ha-manager v2 10/14] sim: hardware: allow setting a base load for nodes Michael Ryom
2026-10-18 12:45 ` [PATCH ha-manager v2 11/14] test: add auto rebalance test case for fluctuating node base loads Michael Ryom
2026-10-18 12:45 ` [PATCH ha-manager v2 12/14] usage: dynamic: smooth the unaccounted node load Michael Ryom
2026-10-18 12:45 ` Michael Ryom [this message]
2026-10-18 12:45 ` [PATCH docs v2 14/14] ha-manager: document the auto-rebalance margin mode, cooldown and failed migrations Michael Ryom
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=20261018124559.24305-14-Michael@RyomHerold.dk \
--to=michael@ryomherold.dk \
--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.