]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Update architecture.rst:Calculating PG IDs 1855/head
authorKai Zhang <zakir.exe@gmail.com>
Fri, 23 May 2014 00:37:16 +0000 (17:37 -0700)
committerKai Zhang <zakir.exe@gmail.com>
Fri, 23 May 2014 00:37:16 +0000 (17:37 -0700)
commitd3af8fa88019b1b43d9f730e3efbf8dbc0cc9fa3
tree5b7c1d304b41df1c75e1e46966cc675fc38280d5
parent04f8e0effaae54d1cc4c4b34d30db48b85039595
Update architecture.rst:Calculating PG IDs

To Calculate PG ID, if I didn't get it wrong, CRUSH calculates the hash modulo
the number of PGs instead of OSDs, according to osd/osd_types.cc:963
ceph_stable_mod(pg.ps(), pg_num, pg_num_mask).

Signed-off-by: Kai Zhang <zakir.exe@gmail.com>
doc/architecture.rst