Skip to contentSkip to conversation

location-aware file placement in Ceph

DISCUSSION Zhongliang Zhao 3 participants 4 messages Feb 27, 2014 – Mar 2, 2014

lore
Share & tools
lore
#0 lore raw

Dear all,

As new to ceph, may I ask in the crush algorithm, is there a way to configure where the file to be stored, not randomly.
My requirement is to place the files that within the same location(within a geographic area), into the same OSD, instead of randomly placing them seperately.

I guess crush may support this. But to do this, I just have to configure some parameters in some ceph commands? or I have to modify the ceph crush algorithm and re-compile ceph?

Many thanks for any helpful pointers.

Cheers, Giovanni

#1 lore raw

There are some options within CRUSH to let you decide where you want to place particular classes of data, but it's not really available on a per-object or per-file basis. You should look through the CRUSH stuff at ceph.com/docs to get an idea of what's possible. -Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com

Quoted 19 lines · Zhongliang Zhao

Dear all,

As new to ceph, may I ask in the crush algorithm, is there a way to configure where the file to be stored, not randomly.
My requirement is to place the files that within the same location(within a geographic area), into the same OSD, instead of randomly placing them seperately.

I guess crush may support this. But to do this, I just have to configure some parameters in some ceph commands? or I have to modify the ceph crush algorithm and re-compile ceph?

Many thanks for any helpful pointers.

Cheers, Giovanni
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to Zhongliang Zhao

May be able to meet your needs through rbd.

You can create multiple rules,and then specify a different pool to use a different ruleset.
Then create multiple block images, and Specify image to different pools.
create file system on the block device and mount file system on different positions,so that the different location of the file can use different ruleset

-------
xianxia xiao

Quoted 15 lines · Zhongliang Zhao

Dear all,

As new to ceph, may I ask in the crush algorithm, is there a way to configure where the file to be stored, not randomly.
My requirement is to place the files that within the same location(within a geographic area), into the same OSD, instead of randomly placing them seperately.

I guess crush may support this. But to do this, I just have to configure some parameters in some ceph commands? or I have to modify the ceph crush algorithm and re-compile ceph?

Many thanks for any helpful pointers.

Cheers, Giovanni

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
In reply to Zhongliang Zhao

May be able to meet your needs through rbd.

You can create multiple rules,and then specify a different pool to use a different ruleset.
Then create multiple block images, and Specify image to different pools.
create file system on the block device and mount file system on different positions,so that the different location of the file can use different ruleset

Cheers, xianxia xiao

-------
ubuntukylin

Quoted 15 lines · Zhongliang Zhao

Dear all,

As new to ceph, may I ask in the crush algorithm, is there a way to configure where the file to be stored, not randomly.
My requirement is to place the files that within the same location(within a geographic area), into the same OSD, instead of randomly placing them seperately.

I guess crush may support this. But to do this, I just have to configure some parameters in some ceph commands? or I have to modify the ceph crush algorithm and re-compile ceph?

Many thanks for any helpful pointers.

Cheers, Giovanni

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html