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

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Nov 29 12:39:27 CET 2018


On 11/28/18 10:26 AM, Alwin Antreich wrote:
> PGCalc and the ceph recommendation say 128 PGs for up to 5 OSDs

missed the CephTools, CephFS and the WebUI ;)
So applied with followup..

> 
> 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';
> 





More information about the pve-devel mailing list