Book Image

Learning Ceph - Second Edition

By : Karan Singh, Vaibhav Bhembre, Anthony D'Atri
Book Image

Learning Ceph - Second Edition

By: Karan Singh, Vaibhav Bhembre, Anthony D'Atri

Overview of this book

Learning Ceph, Second Edition will give you all the skills you need to plan, deploy, and effectively manage your Ceph cluster. You will begin with the first module, where you will be introduced to Ceph use cases, its architecture, and core projects. In the next module, you will learn to set up a test cluster, using Ceph clusters and hardware selection. After you have learned to use Ceph clusters, the next module will teach you how to monitor cluster health, improve performance, and troubleshoot any issues that arise. In the last module, you will learn to integrate Ceph with other tools such as OpenStack, Glance, Manila, Swift, and Cinder. By the end of the book you will have learned to use Ceph effectively for your data storage requirements.
Table of Contents (18 chapters)
Title Page
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

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. A smaller, incremental increase in pg_num will result in fewer existing PGs being split into multiple new PGs. If we exactly double a pool's current pg_num value—remember that we strongly favor powers of 2—all existing PGs are split. Splitting is a very expensive...