Ask Your Question
2

If I increase the number of OSDs in Ceph, why are the PGs smaller than expected?

asked 2021-08-05 11:00:00 +0000

woof gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-05-03 18:00:00 +0000

plato gravatar image

Increasing the number of OSDs in Ceph will result in smaller Placement Groups (PGs) than expected because the number of PGs is determined by a formula that takes the total number of objects and the number of OSDs into account. The formula for calculating the number of PGs is:

PGs = (total objects) / (num OSDs x PGs per OSD)

When the number of OSDs is increased, the denominator in the formula becomes larger, causing the overall number of PGs to decrease. This is because the algorithm aims to balance the number of PGs per OSD, and with more OSDs available, there is less need for extra PGs for redundancy. However, having fewer PGs means that each PG is responsible for more objects, potentially leading to performance issues if the cluster is not properly balanced. It is important to consider the optimal number of OSDs and PGs for your specific use case and workload to ensure the best performance and scalability.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-08-05 11:00:00 +0000

Seen: 20 times

Last updated: May 03 '21