]> git.proxmox.com Git - pve-manager.git/commitdiff
Raise the default pg_num to 128
authorAlwin Antreich <a.antreich@proxmox.com>
Wed, 28 Nov 2018 09:26:39 +0000 (10:26 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 29 Nov 2018 11:19:22 +0000 (12:19 +0100)
PGCalc and the ceph recommendation say 128 PGs for up to 5 OSDs

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
PVE/API2/Ceph.pm

index ad8ae0b728ed5bbddfc0b4eef48223a0fdb14e2c..76933dadbc593828b27842ec7f6bfd2c81477216 100644 (file)
@@ -1648,7 +1648,7 @@ __PACKAGE__->register_method ({
            pg_num => {
                description => "Number of placement groups.",
                type => 'integer',
-               default => 64,
+               default => 128,
                optional => 1,
                minimum => 8,
                maximum => 32768,
@@ -1693,7 +1693,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';