Questions about PG ID to OSDs
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
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_idto OSDs by CRUSH . Example ,
ifpg_id= 1.12,exist osd0,osd1,osd2,osd3,
then how to mappg_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