From: Fyodor Ustinov <ufm@ufm.su>
To: ceph-devel@vger.kernel.org
Subject: CRUSH
Date: Mon, 23 May 2011 19:20:03 +0300 [thread overview]
Message-ID: <4DDA8933.4070504@ufm.su> (raw)
Hi!
Two questions.
1-st. As I understand it - any usable changes of CRUSH map on active
cluster can't destruct data? In the worst case (for example, I managed
to put two osd in one rack, and now I have two copies of the data in a
single rack) I get information about the degradation and this will be
fixed automatically?
2-nd. How to correct edit crush map in case "rack"?
Let's say I have such a map:
device 0 device0
device 1 device1
device 2 device2
device 3 device3
device 4 device4
# types
type 0 device
type 1 host
type 2 rack
type 3 root
# buckets
host host0 {
id -1
alg straw
hash 0 # rjenkins1
item device0 weight 1.000
}
...
host host4 {
id -5
alg straw
hash 0 # rjenkins1
item device4 weight 1.000
}
rack rack0 {
id -6
alg straw
hash 0 # rjenkins1
item host0 weight 1.000
}
...
rack rack4 {
id -10 # do not change unnecessarily
alg straw
hash 0 # rjenkins1
item host4 weight 1.000
}
root root {
id -11 # do not change unnecessarily
alg straw
hash 0 # rjenkins1
item rack0 weight 1.000
item rack1 weight 1.000
item rack2 weight 1.000
item rack3 weight 1.000
item rack4 weight 1.000
}
# rules
rule data {
ruleset 1
type replicated
min_size 2
max_size 2
step take root
step chooseleaf firstn 0 type host
step emit
}
And now i want add one "rack" and add one "osd" to this rack. How should
I deal with "id"?
WBR,
Fyodor.
next reply other threads:[~2011-05-23 16:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-23 16:20 Fyodor Ustinov [this message]
2011-05-23 22:09 ` CRUSH Sage Weil
2011-05-23 22:11 ` CRUSH Fyodor Ustinov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DDA8933.4070504@ufm.su \
--to=ufm@ufm.su \
--cc=ceph-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.