[pve-devel] [PATCH manager] Raise the default pg_num to 128

Alwin Antreich a.antreich at proxmox.com
Wed Nov 28 10:26:39 CET 2018


PGCalc and the ceph recommendation say 128 PGs for up to 5 OSDs

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

diff --git a/PVE/API2/Ceph.pm b/PVE/API2/Ceph.pm
index d74bd016..f5b3a859 100644
--- a/PVE/API2/Ceph.pm
+++ b/PVE/API2/Ceph.pm
@@ -1639,7 +1639,7 @@ __PACKAGE__->register_method ({
 	    pg_num => {
 		description => "Number of placement groups.",
 		type => 'integer',
-		default => 64,
+		default => 128,
 		optional => 1,
 		minimum => 8,
 		maximum => 32768,
@@ -1684,7 +1684,7 @@ __PACKAGE__->register_method ({
 		if !PVE::JSONSchema::parse_storage_id($pool);
 	}
 
-	my $pg_num = $param->{pg_num} || 64;
+	my $pg_num = $param->{pg_num} || 128;
 	my $size = $param->{size} || 3;
 	my $min_size = $param->{min_size} || 2;
 	my $application = $param->{application} // 'rbd';
-- 
2.11.0





More information about the pve-devel mailing list