O'Reilly logo

Learning Ceph - Second Edition by Karan Singh, Vaibhav Bhembre, Anthony D'Atri

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required