[pve-devel] [PATCH manager v4 5/9] ceph: gui: add min num of PG

Dominik Csapak d.csapak at proxmox.com
Tue Apr 20 10:15:19 CEST 2021


From: Alwin Antreich <a.antreich at proxmox.com>

this is used to fine-tune the ceph autoscaler

Signed-off-by: Alwin Antreich <a.antreich at proxmox.com>
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/ceph/Pool.js | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/www/manager6/ceph/Pool.js b/www/manager6/ceph/Pool.js
index e19f8beb..236ed0bc 100644
--- a/www/manager6/ceph/Pool.js
+++ b/www/manager6/ceph/Pool.js
@@ -143,6 +143,15 @@ Ext.define('PVE.CephPoolInputPanel', {
 	    userCls: 'pmx-hint',
 	    value: 'Target Size Ratio takes precedence.',
 	},
+	{
+	    xtype: 'proxmoxintegerfield',
+	    fieldLabel: 'Min. # of PGs',
+	    name: 'pg_num_min',
+	    labelWidth: 140,
+	    minValue: 0,
+	    allowBlank: true,
+	    emptyText: '0',
+	},
     ],
 
     onGetValues: function(values) {
@@ -250,6 +259,14 @@ Ext.define('PVE.node.CephPoolList', {
 		return value;
 	    },
 	},
+	{
+	    text: gettext('Min. # of PGs'),
+	    flex: 1,
+	    minWidth: 140,
+	    align: 'right',
+	    dataIndex: 'pg_num_min',
+	    hidden: true,
+	},
 	{
 	    text: gettext('Target Size Ratio'),
 	    flex: 1,
@@ -426,6 +443,7 @@ Ext.define('PVE.node.CephPoolList', {
 		  { name: 'size', type: 'integer' },
 		  { name: 'min_size', type: 'integer' },
 		  { name: 'pg_num', type: 'integer' },
+		  { name: 'pg_num_min', type: 'integer' },
 		  { name: 'bytes_used', type: 'integer' },
 		  { name: 'percent_used', type: 'number' },
 		  { name: 'crush_rule', type: 'integer' },
-- 
2.20.1






More information about the pve-devel mailing list