Setting PGs on pools

In Chapter 4, Planning your Deployment, we discussed the importance of an appropriate number of placement groups per pool.

Every Ceph pool needs pg_num PGs set and created before we can write data to it. Ceph avails us of two settings for the PG count. One controls the number of PGs present in the pool, while the second controls the number of PGs actually used to hold Objects in the pool. These are pg_num and pgp_num respectively.

Let's discuss pg_num and pgp_num in more detail. The pg prefix of pg_num means simply placement groups while the pgp prefix of pgp_num stands for PGs for placement. When we increase the value of pg_num, some or all of the existing PGs are broken into multiple PGs, a process we call splitting ...

Get Learning Ceph - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.