[pve-devel] [PATCH manager v2 4/5] ceph: add pg_autoscale_mode to pool create

Alwin Antreich a.antreich at proxmox.com
Mon Oct 19 12:39:33 CEST 2020


Signed-off-by: Alwin Antreich <a.antreich at proxmox.com>
---
 PVE/API2/Ceph.pm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/PVE/API2/Ceph.pm b/PVE/API2/Ceph.pm
index 0aeb5075..69fe3d6d 100644
--- a/PVE/API2/Ceph.pm
+++ b/PVE/API2/Ceph.pm
@@ -718,6 +718,13 @@ my $ceph_pool_common_options = sub {
 	    enum => ['rbd', 'cephfs', 'rgw'],
 	    optional => 1,
 	},
+	pg_autoscale_mode => {
+	    description => "The automatic PG scaling mode of the pool.",
+	    type => 'string',
+	    enum => ['on', 'off', 'warn'],
+	    default => 'warn',
+	    optional => 1,
+	},
     };
 
     if (!$nodefault) {
@@ -781,6 +788,7 @@ __PACKAGE__->register_method ({
 	$ceph_param->{size} //= 3;
 	$ceph_param->{min_size} //= 2;
 	$ceph_param->{application} //= 'rbd';
+	$ceph_param->{pg_autoscale_mode} //= 'warn';
 
 	my $worker = sub {
 
-- 
2.27.0






More information about the pve-devel mailing list