From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 3689F74C36 for ; Tue, 20 Apr 2021 10:15:29 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 3274C202BE for ; Tue, 20 Apr 2021 10:15:29 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id ABB8E20280 for ; Tue, 20 Apr 2021 10:15:24 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 7641E45B2A; Tue, 20 Apr 2021 10:15:24 +0200 (CEST) From: Dominik Csapak To: pve-devel@lists.proxmox.com Cc: Alwin Antreich Date: Tue, 20 Apr 2021 10:15:19 +0200 Message-Id: <20210420081523.2704-6-d.csapak@proxmox.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210420081523.2704-1-d.csapak@proxmox.com> References: <20210420081523.2704-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.157 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH manager v4 5/9] ceph: gui: add min num of PG X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Apr 2021 08:15:29 -0000 From: Alwin Antreich this is used to fine-tune the ceph autoscaler Signed-off-by: Alwin Antreich Signed-off-by: Dominik Csapak --- 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