[pve-devel] [PATCH manager 2/2] ceph: add option pg_autoscale_mode on pool create

Alwin Antreich a.antreich at proxmox.com
Wed Oct 14 16:03:52 CEST 2020


Different defaults for nautilus (warn) and octopus (on), more
conservative setting used.

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 48d0484f..f8b1b22f 100644
--- a/PVE/API2/Ceph.pm
+++ b/PVE/API2/Ceph.pm
@@ -732,6 +732,13 @@ __PACKAGE__->register_method ({
 		type => 'boolean',
 		optional => 1,
 	    },
+	    pg_autoscale_mode => {
+		description => "The automatic PG scaling mode of the pool.",
+		type => 'string',
+		enum => ['on', 'off', 'warn'],
+		default => 'warn',
+		optional => 1,
+	    },
 	},
     },
     returns => { type => 'string' },
@@ -762,6 +769,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