暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
存储池归置组和 CRUSH 配置参考.docx
113
4页
0次
2022-05-22
5墨值下载
存储池归置组和
CRUSH
配置参考
当你创建存储池并给它设置归置组数量时,如果你没指定
Ceph
就用默认值。我们建议
改某些默认值,特别是存储池的副本数和默认归置组数量,可以在运行
pool
命令的时候设
置这些值。你也可以把配置写入
Ceph
配置文件的 [global]
段来覆盖默认值。
[global]
# By default, Ceph makes 3 replicas of objects. If you want to make four
# copies of an object the default value--a primary copy and three replica
# copies--reset the default values as shown in 'osd pool default size'.
# If you want to allow Ceph to write a lesser number of copies in a
degraded
# state, set 'osd pool default min size' to a number less than the
# 'osd pool default size' value.
osd pool default size = 4 # Write an object 4 times. osd pool default
min size = 1 # Allow writing one copy in a degraded state.
# Ensure you have a realistic number of placement groups. We recommend
# approximately 100 per OSD. E.g., total number of OSDs multiplied by 100
# divided by the number of replicas (i.e., osd pool default size). So for
# 10 OSDs and osd pool default size = 4, we'd recommend approximately
# (100 * 10) / 4 = 250.
osd pool default pg num = 250 osd pool default pgp num = 250
mon max pool pg num
描述
:
每个存储的最大归置组数量。
类型
: Integer
默认值
:
65536
mon pg create interval
描述
:
在同一个
OSD
里创建
PG
的间隔秒数。
类型
: Float
默认值
:
30.0
mon pg stuck threshold
描述
:
多长时间无响应的
PG
才认为它卡住了。
类型
: 32-bit Integer
默认值
:
300
osd pg bits
描述
:
每个
OSD
的归置组位数。
类型
: 32-bit Integer
默认值
:
6
osd pgp bits
描述
:
每个
OSD
PGP
留的位数。
类型
: 32-bit Integer
默认值
:
6
osd crush chooseleaf type
描述
:
在一个
CRUSH
规则内用于 chooseleaf
的桶类型。用序列号而不是名字。
类型
: 32-bit Integer
默认值
:
1
,通常一台主机包含一或多个
OSD
osd pool default crush replicated ruleset
:
创建多副本存储池时用哪个默认
CRUSH
规则集。
:
8-bit Integer
:
CEPH_DEFAULT_CRUSH_REPLICATED_RULESET
,也就是说,“挑选数字
ID
最小的规则集”。这样,没有规则集
0
时也能成功创建存储池。
osd pool erasure code stripe width
描述
:
设置每个已编码池内的对象条带尺寸(单位为字节)。尺寸为
S
的各对象将存
of 4
5墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜