Thanks! What happens when the lone rule fails? Is there a fallback
rule that will place the blob in a random PG? Say I misconfigure, and
my choose/chooseleaf  don't add up to pool min size.

(This also explains why all examples in the wild use only 1 rule per ruleset.)



On Fri, Nov 14, 2014 at 7:03 AM, Gregory Farnum <[email protected]> wrote:
> On Thu, Nov 13, 2014 at 2:58 PM, Anthony Alba <[email protected]> wrote:
>> Hi list,
>>
>>
>> When there are multiple rules in a ruleset, is it the case that "first
>> one wins"?
>>
>> When will a rule faisl, does it  fall through to the next rule?
>> Are min_size, max_size  the only determinants?
>>
>> Are there any examples? The only examples I've see put one rule per
>> ruleset (e.g. the docs have a ssd/platter example but that shows 1
>> rule per ruleset)
>
> The intention of rulesets is that they are used only for pools of
> different sizes, so the behavior when you have multiple rules which
> match to a given size is probably not well-defined.
>
> That said, even using multiple rules in a single ruleset is not well
> tested and I believe the functionality is being removed in the next
> release. I would recommend against using them.
> -Greg
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to