all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: "Michael Köppl" <m.koeppl@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH manager 1/1] ui: crs: add tech preview warning for rebalance on start
Date: Wed, 29 Jul 2026 10:55:05 +0200	[thread overview]
Message-ID: <20260729085505.59744-1-m.koeppl@proxmox.com> (raw)

For static and dynamic scheduling modes, rebalance on start is in
technology preview [0]. Display a warning message if either "Static
Load" or "Dynamic Load" is selected and the "Rebalance on Start"
checkbox is checked.

Also renames the canUseAutoRebalancing formula since the predicate now
has a second consumer that is separate from the auto-rebalancing
option, so the old name described one of its callers rather than the
condition it tests. Naming the condition itself avoids duplicating the
formula check for the hint's visibility binding.

This avoids confusion about the status [1] of the feature given what is
stated in the documentation.

[0] https://pve.proxmox.com/pve-docs/chapter-ha-manager.html#_ha_resource_rebalance_on_start_opt_in
[1] https://forum.proxmox.com/threads/185390/

Signed-off-by: Michael Köppl <m.koeppl@proxmox.com>
---
 www/manager6/form/CRSOptions.js | 22 +++++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)

diff --git a/www/manager6/form/CRSOptions.js b/www/manager6/form/CRSOptions.js
index 84f6d5062..75611ce23 100644
--- a/www/manager6/form/CRSOptions.js
+++ b/www/manager6/form/CRSOptions.js
@@ -21,12 +21,15 @@ Ext.define('PVE.form.CRSOptions', {
         data: {
             crsMode: '__default__',
             autoRebalancing: 0,
+            rebalanceOnStart: 0,
         },
         formulas: {
-            canUseAutoRebalancing: (get) =>
+            loadBasedScheduling: (get) =>
                 get('crsMode') === 'static' || get('crsMode') === 'dynamic',
             autoRebalancingDisabled: (get) =>
-                !get('autoRebalancing') || !get('canUseAutoRebalancing'),
+                !get('autoRebalancing') || !get('loadBasedScheduling'),
+            rebalanceOnStartHintHidden: (get) =>
+                !get('rebalanceOnStart') || !get('loadBasedScheduling'),
         },
     },
 
@@ -64,6 +67,19 @@ Ext.define('PVE.form.CRSOptions', {
                         'Use CRS to select the least loaded node when starting an HA resource',
                     ),
                     value: 0,
+                    bind: {
+                        value: '{rebalanceOnStart}',
+                    },
+                },
+                {
+                    xtype: 'displayfield',
+                    userCls: 'pmx-hint',
+                    value: gettext(
+                        'Rebalance on Start is currently a technology preview for the Static Load and Dynamic Load scheduling modes. It is not recommended for clusters with thousands of HA resources.',
+                    ),
+                    bind: {
+                        hidden: '{rebalanceOnStartHintHidden}',
+                    },
                 },
                 {
                     xtype: 'proxmoxcheckbox',
@@ -72,7 +88,7 @@ Ext.define('PVE.form.CRSOptions', {
                     boxLabel: gettext('Automatically rebalance HA resources'),
                     bind: {
                         value: '{autoRebalancing}',
-                        disabled: '{!canUseAutoRebalancing}',
+                        disabled: '{!loadBasedScheduling}',
                     },
                 },
                 {
-- 
2.47.3





                 reply	other threads:[~2026-07-29  8:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20260729085505.59744-1-m.koeppl@proxmox.com \
    --to=m.koeppl@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