All of lore.kernel.org
 help / color / mirror / Atom feed
* crush rule definitions
@ 2011-05-04 18:16 Zenon Panoussis
  2011-05-04 18:21 ` Sage Weil
  0 siblings, 1 reply; 6+ messages in thread
From: Zenon Panoussis @ 2011-05-04 18:16 UTC (permalink / raw)
  To: ceph-devel


Hi

I thought that min_size in crush is obvious, but the more I read the more
I tend to doubt. So I might as well ask:

With a crushmap like this

===
type 0 device
type 1 host
type 2 root

[definitions for the above; hosts contain devices, root contains hosts]

rule data {
        ruleset 0
        type replicated
        min_size 2
        max_size 2
        step take root
        step chooseleaf firstn 0 type host
        step emit
}
===

does "min_size 2, max_size 2" mean that I want "2 copies of the data on each
host" or "2 copies of the data in total in the entire cluster"?

Z




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

end of thread, other threads:[~2011-05-04 20:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-04 18:16 crush rule definitions Zenon Panoussis
2011-05-04 18:21 ` Sage Weil
2011-05-04 19:20   ` Zenon Panoussis
2011-05-04 19:28     ` Sage Weil
2011-05-04 19:31       ` Sage Weil
2011-05-04 20:34       ` Zenon Panoussis

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.