All of lore.kernel.org
 help / color / mirror / Atom feed
* location-aware file placement in Ceph
@ 2014-02-27 13:25 Zhongliang Zhao
  2014-02-27 18:29 ` Gregory Farnum
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Zhongliang Zhao @ 2014-02-27 13:25 UTC (permalink / raw)
  To: ceph-devel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: location-aware file placement in Ceph
  2014-02-27 13:25 location-aware file placement in Ceph Zhongliang Zhao
@ 2014-02-27 18:29 ` Gregory Farnum
  2014-03-01  2:48 ` 肖先霞
  2014-03-02  6:00 ` xiao xiaoxia
  2 siblings, 0 replies; 5+ messages in thread
From: Gregory Farnum @ 2014-02-27 18:29 UTC (permalink / raw)
  To: Zhongliang Zhao; +Cc: ceph-devel@vger.kernel.org

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


On Thu, Feb 27, 2014 at 5:25 AM, Zhongliang Zhao
<zhaozhongliang@gmail.com> wrote:
> 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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: location-aware file placement in Ceph
  2014-02-27 13:25 location-aware file placement in Ceph Zhongliang Zhao
  2014-02-27 18:29 ` Gregory Farnum
@ 2014-03-01  2:48 ` 肖先霞
  2014-03-02  6:00 ` xiao xiaoxia
  2 siblings, 0 replies; 5+ messages in thread
From: 肖先霞 @ 2014-03-01  2:48 UTC (permalink / raw)
  To: Zhongliang Zhao, ceph-devel

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



于 2014/2/27 21:25, 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 majordomo@vger.kernel.org
> 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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: location-aware file placement in Ceph
  2014-02-27 13:25 location-aware file placement in Ceph Zhongliang Zhao
  2014-02-27 18:29 ` Gregory Farnum
  2014-03-01  2:48 ` 肖先霞
@ 2014-03-02  6:00 ` xiao xiaoxia
  2 siblings, 0 replies; 5+ messages in thread
From: xiao xiaoxia @ 2014-03-02  6:00 UTC (permalink / raw)
  To: Zhongliang Zhao; +Cc: ceph-devel, liwang


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




于 2014/2/27 21:25, 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 majordomo@vger.kernel.org
> 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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: location-aware file placement in Ceph
       [not found] ` <53457C07.3060507@gmail.com>
@ 2014-04-14  1:27   ` xiao xianxia
  0 siblings, 0 replies; 5+ messages in thread
From: xiao xianxia @ 2014-04-14  1:27 UTC (permalink / raw)
  To: Zhongliang Zhao; +Cc: ceph-devel, liwang

Hi Zhongliang,
     you can find a lot of command on ceph official document!


于 2014/4/10 0:57, Zhongliang Zhao 写道:
> Hi XIanxia,
>
> Thanks a lot for the reply.
>
> Since I am new to ceph, some parts of your reply is unclear to me. Is 
> it possible for you to make it more clear? Thanks a lot for your time.
>
> On 02/28/2014 02:41 AM, Xianxia Xiao wrote:
>>
>> 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.
> Where can I modify or creat the rule? On the monitor node? and how to 
> configure a pool to use a ruleset?
you can use crushtool export crush map,then modify the rule in crush map 
,you can create new rules.
http://ceph.com/docs/master/rados/operations/crush-map/?highlight=crush%20map

you can use #ceph osd pool set {pool name} {key} {value}
the key is crush_ruleset,value is the rule num.
>> Then create multiple block images, and Specify image to different pools.
> How this can be done?

you can see that in Block Device Command in ceph document.
http://ceph.com/docs/master/rbd/rados-rbd-cmds/

>> 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.
> How do I know to where I should mount the file system?
You decide,mount command is the same to linux mount command.

>
> Best regards,
> Zhongliang Zhao
>>
>>
>>
Best regards,
xian xia
>>
>>
>>
>>
>>
>>> -----原始邮件-----
>>> 发件人: Zhongliang Zhao<zhaozhongliang@gmail.com>
>>> 发送时间: 2014年2月27日 星期四
>>> 收件人: ceph-devel@vger.kernel.org
>>> 抄送:
>>> 主题: location-aware file placement in Ceph
>>>
>>> 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 majordomo@vger.kernel.org
>>> 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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-04-14  1:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-27 13:25 location-aware file placement in Ceph Zhongliang Zhao
2014-02-27 18:29 ` Gregory Farnum
2014-03-01  2:48 ` 肖先霞
2014-03-02  6:00 ` xiao xiaoxia
     [not found] <AKYAowCzAHlylsi1xeYx2apM.1.1393551692725.Hmail.xianxiaxiao@ubuntukylin.com>
     [not found] ` <53457C07.3060507@gmail.com>
2014-04-14  1:27   ` xiao xianxia

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.