gpt4 book ai didi

linux - GlusterFS 服务器选项 cluster.readdir-optimize 控制什么?

转载 作者:太空宇宙 更新时间:2023-11-04 12:21:41 25 4
gpt4 key购买 nike

我一直在尝试优化我的 GlusterFS 存储集群的小文件性能。

许多论坛主题和博客帖子似乎建议在卷上设置 cluster.readdir-optimize 属性,例如:

$ gluster volume get test-share cluster.readdir-optimize on

此选项的默认值(从 GlusterFS v3.10 开始)似乎是 off,这让我认为启用此功能必须进行一些权衡。但是,我无法在任何地方找到任何文档来准确解释此选项的作用。

在生产中启用它之前,我想了解此选项的功能。

最佳答案

如相关 GlusterFS git 存储库中所述 commit message , readdir-optimize 选项支持以下内容:

Bring in option which is supported by posix xlator to filter out directory's entries from being returned. DHT would now request non-first subvols to filter out directory entries.

我不完全理解这如何直接提高 GlusterFS 在小文件方面的性能。但是根据GlusterFS documentation BD xalator 执行包装 GlusterFS block 后端的功能,并使 GlusterFS 卷由 block 组成,这些 block 本身是底层逻辑卷。

关于linux - GlusterFS 服务器选项 cluster.readdir-optimize 控制什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45758819/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com