简体   繁体   English

如何设置Ceph块大小?

[英]How to set Ceph chunk size?

I've read in this article that adjusting Ceph's chunk size can improve its performance. 我在本文中已经读到,调整Ceph的块大小可以提高其性能。 How is that set? 怎么样? This document explains how to set the stripe size. 本文档说明了如何设置条带大小。 Is that what the first article means by "chunk size"? 那是第一篇文章所说的“块大小”的意思吗?

Ceph, at its core, doesn't have a "chunk size" (term used in the article, but not on the docs). Ceph的核心没有“块大小”(本文中使用的术语,但文档中未使用)。 The RADOS layer stores objects as a whole, without any splitting or striping. RADOS层将对象作为一个整体存储,没有任何拆分或分割。

It's the other layers that do striping of their data into several RADOS objects. 是其他层将数据分割为几个RADOS对象。

If you're using RGW (for S3/Swift compatibility), check the Ceph Object Gateway Config Reference for rgw object stripe size . 如果您使用的是RGW(为了实现S3 / Swift兼容性),请查看Ceph对象网关配置参考中的rgw object stripe size

For RBD (block device access), check the --stripe-unit argument to the rbd create command . 对于RBD(阻止设备访问),请检查rbd create命令--stripe-unit参数。

Finally, for CephFS (mountable filesystem), in the manpage you refer , the --stripe_unit argument is the size of each stripe. 最后,对于CephFS(可挂载文件系统),在您参考的联机帮助页中 ,-- --stripe_unit参数是每个条带的大小。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM