Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: pg_num should always be a power of two #29364

Merged
merged 3 commits into from Aug 1, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions doc/rados/operations/placement-groups.rst
Expand Up @@ -433,9 +433,11 @@ You should then check if the result makes sense with the way you
designed your Ceph cluster to maximize `data durability`_,
`object distribution`_ and minimize `resource usage`_.

The result should be **rounded up to the nearest power of two.**
Rounding up is optional, but recommended for CRUSH to more evenly balance
the number of objects among placement groups.
The result should always be **rounded up to the nearest power of two.**
A power of two will evenly balance the number of objects among placement groups.
You could set it to a different value but you should be aware that this could result in
an uneven distribution of data across your OSDs. Use of such values shoud be limited to
l-mb marked this conversation as resolved.
Show resolved Hide resolved
incrementally stepping from one power of two to another.

As an example, for a cluster with 200 OSDs and a pool size of 3
replicas, you would estimate your number of PGs as follows::
Expand Down