ceph: update all pg_num defaults to 128

As the last patch missed a few places. see pg calc or also:
http://docs.ceph.com/docs/luminous/rados/operations/placement-groups/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2018-11-29 12:36:21 +01:00
parent ba454377ad
commit 6ad70a2bb8
4 changed files with 6 additions and 6 deletions

View File

@ -100,7 +100,7 @@ __PACKAGE__->register_method ({
pg_num => { pg_num => {
description => "Number of placement groups for the backing data pool. The metadata pool will use a quarter of this.", description => "Number of placement groups for the backing data pool. The metadata pool will use a quarter of this.",
type => 'integer', type => 'integer',
default => 64, default => 128,
optional => 1, optional => 1,
minimum => 8, minimum => 8,
maximum => 32768, maximum => 32768,
@ -124,7 +124,7 @@ __PACKAGE__->register_method ({
if ! -f $pve_ckeyring_path; if ! -f $pve_ckeyring_path;
my $fs_name = $param->{name} // 'cephfs'; my $fs_name = $param->{name} // 'cephfs';
my $pg_num = $param->{pg_num} // 64; my $pg_num = $param->{pg_num} // 128;
my $pool_data = "${fs_name}_data"; my $pool_data = "${fs_name}_data";
my $pool_metadata = "${fs_name}_metadata"; my $pool_metadata = "${fs_name}_metadata";

View File

@ -194,7 +194,7 @@ sub create_pool {
$rados = PVE::RADOS->new(); $rados = PVE::RADOS->new();
} }
my $pg_num = $param->{pg_num} || 64; my $pg_num = $param->{pg_num} || 128;
my $size = $param->{size} || 3; my $size = $param->{size} || 3;
my $min_size = $param->{min_size} || 2; my $min_size = $param->{min_size} || 2;
my $application = $param->{application} // 'rbd'; my $application = $param->{application} // 'rbd';

View File

@ -38,8 +38,8 @@ Ext.define('PVE.CephCreateFS', {
xtype: 'proxmoxintegerfield', xtype: 'proxmoxintegerfield',
fieldLabel: 'Placement Groups', fieldLabel: 'Placement Groups',
name: 'pg_num', name: 'pg_num',
value: 64, value: 128,
emptyText: 64, emptyText: 128,
minValue: 8, minValue: 8,
maxValue: 32768, maxValue: 32768,
allowBlank: false allowBlank: false

View File

@ -43,7 +43,7 @@ Ext.define('PVE.CephCreatePool', {
xtype: 'proxmoxintegerfield', xtype: 'proxmoxintegerfield',
fieldLabel: 'pg_num', fieldLabel: 'pg_num',
name: 'pg_num', name: 'pg_num',
value: 64, value: 128,
minValue: 8, minValue: 8,
maxValue: 32768, maxValue: 32768,
allowBlank: false allowBlank: false