ceph crushmap
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ceph crushmap相关的知识,希望对你有一定的参考价值。
此map为我生成环境 故障域为rack
rack rack-05 {
id -26 # do not change unnecessarily
# weight 78.336
alg straw
hash 0 # rjenkins1
item sjz-ceph-p-online-17 weight 19.584
item sjz-ceph-p-online-18 weight 19.584
item sjz-ceph-p-online-19 weight 19.584
item sjz-ceph-p-online-20 weight 19.584
}
root rc {
id -1 # do not change unnecessarily
# weight 391.680
alg straw
hash 0 # rjenkins1
item rack-01 weight 78.336
item rack-02 weight 78.336
item rack-03 weight 78.336
item rack-04 weight 78.336
item rack-05 weight 78.336
}
# rules
rule replicated_ruleset {
ruleset 0
type replicated
min_size 1
max_size 10
step take rc
step chooseleaf firstn 0 type host
step emit
}
rule vms {
ruleset 1
type replicated
min_size 1
max_size 10
step take rc
step chooseleaf firstn 0 type rack
step emit
}
rule volumes {
ruleset 2
type replicated
min_size 1
max_size 10
step take rc
step chooseleaf firstn 0 type rack
step emit
}
rule images {
ruleset 3
type replicated
min_size 1
max_size 10
step take rc
step chooseleaf firstn 0 type rack
}
其中images 没有应用 测试如果应用images的rule 对应glance无法正确提供镜像
本文出自 “让我men共同成长” 博客,请务必保留此出处http://wujingfeng.blog.51cto.com/5725921/1969105
以上是关于ceph crushmap的主要内容,如果未能解决你的问题,请参考以下文章