From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id C0B301FF137 for ; Tue, 17 Feb 2026 15:16:44 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B80D440A0; Tue, 17 Feb 2026 15:15:31 +0100 (CET) From: Daniel Kral To: pve-devel@lists.proxmox.com Subject: [RFC manager 2/2] ui: dc/options: add auto rebalancing options Date: Tue, 17 Feb 2026 15:14:30 +0100 Message-ID: <20260217141437.584852-37-d.kral@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260217141437.584852-1-d.kral@proxmox.com> References: <20260217141437.584852-1-d.kral@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1771337678782 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.014 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 T_SPF_TEMPERROR 0.01 SPF: test of record failed (temperror) Message-ID-Hash: G4V7MFEY7HTA3XSPXLTZZ3A7TBSUFOUS X-Message-ID-Hash: G4V7MFEY7HTA3XSPXLTZZ3A7TBSUFOUS X-MailFrom: d.kral@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: Signed-off-by: Daniel Kral --- www/manager6/dc/OptionView.js | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/www/manager6/dc/OptionView.js b/www/manager6/dc/OptionView.js index 46ab95e7..ccc72d47 100644 --- a/www/manager6/dc/OptionView.js +++ b/www/manager6/dc/OptionView.js @@ -210,6 +210,51 @@ Ext.define('PVE.dc.OptionView', { ), value: 0, }, + { + xtype: 'proxmoxcheckbox', + name: 'ha-auto-rebalance', + fieldLabel: gettext('Automatic Rebalance'), + boxLabel: gettext('Automatically rebalance HA resources'), + value: 0, + }, + { + xtype: 'numberfield', + name: 'ha-auto-rebalance-threshold', + fieldLabel: gettext('Automatic Rebalance Threshold'), + emptyText: '0.7', + minValue: 0.0, + step: 0.01, + }, + { + xtype: 'proxmoxKVComboBox', + name: 'ha-auto-rebalance-method', + fieldLabel: gettext('Automatic Rebalance Method'), + deleteEmpty: false, + value: '__default__', + comboItems: [ + ['__default__', Proxmox.Utils.defaultText + ' (bruteforce)'], + ['bruteforce', 'Bruteforce'], + ['topsis', 'TOPSIS'], + ], + defaultValue: '__default__', + }, + { + xtype: 'numberfield', + name: 'ha-auto-rebalance-hold-duration', + fieldLabel: gettext('Automatic Rebalance Hold Duration'), + emptyText: '3', + minValue: 0, + step: 1, + }, + { + xtype: 'numberfield', + name: 'ha-auto-rebalance-margin', + fieldLabel: gettext('Automatic Rebalance Margin'), + emptyText: '0.1', + minValue: 0.0, + maxValue: 1.0, + step: 0.01, + }, ], }); me.add_inputpanel_row('u2f', gettext('U2F Settings'), { -- 2.47.3