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 51a3046bdf
commit a3e7ff34b6
4 changed files with 6 additions and 6 deletions

View File

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

View File

@ -194,7 +194,7 @@ sub create_pool {
$rados = PVE::RADOS->new();
}
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';

View File

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

View File

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