Skip to contentSkip to conversation

Questions about PG ID to OSDs

DISCUSSION Jeff Wu 2 participants 2 messages Feb 21, 2011

lore
Share & tools
lore

Jeff Wu

author
#0 lore raw

Hi ,
I'm reading CRUSH and RADOS thesis,from these thesis , i can get the algorithms:

object_id = <object_number,inode_number>;
pg_id = (r,hash(object_id) & mask) ; // closely resembles consistent
hashing

but i am wondering how to map a pg_id to OSDs by CRUSH . Example ,
if pg_id = 1.12,exist osd0,osd1,osd2,osd3,
then how to map pg_id = 1.12 to these osds ? the algorithms ? the detail steps ?

Thanks a lot.

Jeff .C.P.Wu

#1 lore raw
Quoted 7 lines · Jeff Wu

I'm reading CRUSH and RADOS thesis,from these thesis , i can get the algorithms:

object_id = <object_number,inode_number>;
pg_id = (r,hash(object_id) & mask) ; // closely resembles consistent
hashing

Quoted 5 lines

but i am wondering how to map a pg_id to OSDs by CRUSH . Example ,
if pg_id = 1.12,exist osd0,osd1,osd2,osd3,
then how to map pg_id = 1.12 to these osds ? the algorithms ? the detail steps ?

The CRUSH algorithm is described in detail by

http://ceph.newdream.net/papers/weil-crush-sc06.pdf

sage