is this a correct number of pg placement in datapool ?

FSNaval

New Member
Jan 13, 2024
13
0
1
Good day all,

I have a three node proxmox cluster running ceph and i have created two pools.

The first pool (vmpool) consisted from NVME drives for my VMs which ceph assigned 128pgs

The second pool (datapool) consisted from HDD drives for my VMs which ceph assigned 32pgs

Please see attached image. On both pools, pg assignment has been done automatically and for both pools as you can see the "PG Autoscale Mode" is "ON"

I think that the number of PGs on the datapool is low, how it is possible to have a lower number despite having bigger capacity than (vmpool)? should i increase the number of PGs manually? What is your opinion?
 

Attachments

  • IMG_4414.JPG
    IMG_4414.JPG
    948.9 KB · Views: 7
The automatic calculation of the optimum PGs depends on the number of OSDs and the amount of data in the pool. As the pool is still empty, this results in a small number of PGs.
It is best to check how much data should be in the pool and calculate this manually using a PG calculator.
 
  • Like
Reactions: FSNaval
The automatic calculation of the optimum PGs depends on the number of OSDs and the amount of data in the pool. As the pool is still empty, this results in a small number of PGs.
It is best to check how much data should be in the pool and calculate this manually using a PG calculator.

Thank you very much for your prompt reply.

I have used this pg calculator: https://docs.ceph.com/en/latest/rados/operations/pgcalc/

my pool is the last one (my homedatapool) and as per calculations it should have 128PGs instead of 32 that it currently has.

I used a 3-node cluster with 10 OSDs totally and an expected capacity of 30% of data.

How can i verify this? Should i proceed with manually adjusting the PGs?
 
Yes, do that. 128 PG sounds plausible and it can be changed at any time. Then it only has a performance impact.
 
if you have only 1 pool for each kind of disk, set target ratio to "1.0"
Yes, do that. 128 PG sounds plausible and it can be changed at any time. Then it only has a performance impact.

I have read in the documentation that between 5 and 10 OSDs i should set pg_num to 512. Using the calculation relation from the documentation, the nearest power of two is 512.

How much a performance impact there should be between 512 and 128?

Maybe i should opt for 256 instead and see how it goes?
 
How much a performance impact there should be between 512 and 128?
It always depends on the data that is stored on it. The difference is guaranteed to be measurable, but you won't usually feel it.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!