如何设置 Ceph 块大小?

How to set Ceph chunk size?

我在 this article that adjusting Ceph's chunk size can improve its performance. How is that set? This document 中读到解释了如何设置条带大小。这就是第一篇文章"chunk size"的意思吗?

Ceph 的核心没有 "chunk size"(文章中使用的术语,但文档中没有)。 RADOS 层将对象作为一个整体存储,没有任何拆分或条带化。

其他层将其数据条带化为多个 RADOS 对象。

如果您使用的是 RGW(为了 S3/Swift 兼容性),请检查 the Ceph Object Gateway Config Reference 是否有 rgw object stripe size

对于 RBD(块设备访问),检查 rbd create command--stripe-unit 参数。

最后,对于 CephFS(可挂载文件系统),在 the manpage you refer 中,--stripe_unit 参数是每个条带的大小。