Signed-off-by: Daniel Kral <[email protected]>
---
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