Skip to content

Commit

Permalink
No CRUSH involvement in deciding PG target
Browse files Browse the repository at this point in the history
Quoting from elsewhere "[we calculate] a placement group using the object name, a hash code, the number of PGs in the pool and the pool name"
  • Loading branch information
oddomatik committed Jul 30, 2015
1 parent 7fbf013 commit 77cdb50
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions doc/rados/operations/placement-groups.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@ cannot realistically track placement on a per-object basis.
| |
+-----------------------+

Placement groups are invisible to the Ceph user: the CRUSH algorithm
determines in which placement group the object will be
placed. Although CRUSH is a deterministic function using the object
name as a parameter, there is no way to force an object into a given
placement group.
The Ceph client will calculate which placement group an object should
be in. It does this by hashing the object ID and applying an operation
based on the number of PGs in the defined pool and the ID of the pool.
See `Mapping PGs to OSDs`_ for details.

The object's contents within a placement group are stored in a set of
OSDs. For instance, in a replicated pool of size two, each placement
Expand Down

0 comments on commit 77cdb50

Please sign in to comment.