* Osd placement rule questions
@ 2012-07-05 3:45 Mark Kirkwood
2012-07-05 3:57 ` Sage Weil
0 siblings, 1 reply; 3+ messages in thread
From: Mark Kirkwood @ 2012-07-05 3:45 UTC (permalink / raw)
To: ceph-devel
Hi,
I am experimenting with ceph (rbd only for now), and have a few
questions about what is possible via placement rules.
For example I am looking at a setup with a local datacenter
(datacenter0) and a remote one (datacenter1). I'm using a placement rule:
rule rbd {
ruleset 2
type replicated
min_size 1
max_size 10
step take datacenter0
step chooseleaf firstn -1 type host
step emit
step take datacenter1
step chooseleaf firstn 1 type host
step emit
}
and I have the rdb pool set to size 3.
So I *think* I am saying I want 2 replicas in datacenter0 and one in
datacenter1 [1].
The questions I have are:
1/ I would like to be able to have a way to say something like: Make 2
copies at datacenter0, 1 at datacenter1 - wait for the ones at
datacenter0 to be written but not the ones at datacenter1 (so
asynchronous for the latter). Is this possible, or planned?
2/ Also I would like to be able to say make my number of copies 3, but
if I lose datacenter0 (where 2 copies are), don't try to have 3 copies
at datacenter1 (so run degraded in that case). Is that possible?
Cheers
Mark
[1] Might make more sense to have 2 copies at each, but I'm just trying
to see how this placement business works at this point...
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Osd placement rule questions
2012-07-05 3:45 Osd placement rule questions Mark Kirkwood
@ 2012-07-05 3:57 ` Sage Weil
2012-07-05 4:55 ` Mark Kirkwood
0 siblings, 1 reply; 3+ messages in thread
From: Sage Weil @ 2012-07-05 3:57 UTC (permalink / raw)
To: Mark Kirkwood; +Cc: ceph-devel
On Thu, 5 Jul 2012, Mark Kirkwood wrote:
> Hi,
>
> I am experimenting with ceph (rbd only for now), and have a few questions
> about what is possible via placement rules.
>
> For example I am looking at a setup with a local datacenter (datacenter0) and
> a remote one (datacenter1). I'm using a placement rule:
>
> rule rbd {
> ruleset 2
> type replicated
> min_size 1
> max_size 10
> step take datacenter0
> step chooseleaf firstn -1 type host
> step emit
> step take datacenter1
> step chooseleaf firstn 1 type host
> step emit
> }
>
> and I have the rdb pool set to size 3.
>
> So I *think* I am saying I want 2 replicas in datacenter0 and one in
> datacenter1 [1].
That's right!
> The questions I have are:
>
> 1/ I would like to be able to have a way to say something like: Make 2 copies
> at datacenter0, 1 at datacenter1 - wait for the ones at datacenter0 to be
> written but not the ones at datacenter1 (so asynchronous for the latter). Is
> this possible, or planned?
It is not possible yet, but planned for the future.
> 2/ Also I would like to be able to say make my number of copies 3, but if I
> lose datacenter0 (where 2 copies are), don't try to have 3 copies at
> datacenter1 (so run degraded in that case). Is that possible?
That is what you get now. Doing the opposite (2 copies in DC1, 1 in DC2,
but if DC2 is down 3 in DC1) is not currently possible with the crush
rules.
sage
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Osd placement rule questions
2012-07-05 3:57 ` Sage Weil
@ 2012-07-05 4:55 ` Mark Kirkwood
0 siblings, 0 replies; 3+ messages in thread
From: Mark Kirkwood @ 2012-07-05 4:55 UTC (permalink / raw)
To: Sage Weil; +Cc: ceph-devel
On 05/07/12 15:57, Sage Weil wrote:
> On Thu, 5 Jul 2012, Mark Kirkwood wrote:
>
>> 2/ Also I would like to be able to say make my number of copies 3, but if I
>> lose datacenter0 (where 2 copies are), don't try to have 3 copies at
>> datacenter1 (so run degraded in that case). Is that possible?
> That is what you get now. Doing the opposite (2 copies in DC1, 1 in DC2,
> but if DC2 is down 3 in DC1) is not currently possible with the crush
> rules.
>
Ah, right - excellent and thanks for clarifying! I guess I was
unconsciously (and incorrectly) thinking that the crush rule would be
modified when (say) datacenter0 was not available.
Cheers
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-07-05 4:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-05 3:45 Osd placement rule questions Mark Kirkwood
2012-07-05 3:57 ` Sage Weil
2012-07-05 4:55 ` Mark Kirkwood
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.