码迷,mamicode.com
首页 > 其他好文 > 详细

ceph crushmap

时间:2017-09-27 20:50:06      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:crush map

此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

标签:crush map

原文地址:http://wujingfeng.blog.51cto.com/5725921/1969105

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!