千家信息网

gluster中继器默认值是什么

发表于:2025-12-02 作者:千家信息网编辑
千家信息网最后更新 2025年12月02日,这篇文章主要介绍"gluster中继器默认值是什么",在日常操作中,相信很多人在gluster中继器默认值是什么问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答"glust
千家信息网最后更新 2025年12月02日gluster中继器默认值是什么

这篇文章主要介绍"gluster中继器默认值是什么",在日常操作中,相信很多人在gluster中继器默认值是什么问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答"gluster中继器默认值是什么"的疑惑有所帮助!接下来,请跟着小编一起来学习吧!

一、性能相关中继器

write-behind, read-ahead, io-cache, quick-read, open-behind, stat-prefetch(md-cache), io-threads(默认server端)

以上中继器默认全部开启,symlink-cache默认关闭。

NFS相关性能优化中继器

默认开启:

performance.nfs.write-behind


默认关闭:

performance.nfs.read-ahead

performance.nfs.io-cache

performance.nfs.quick-read

performance.nfs.stat-prefetch

performance.nfs.io-threads

performance.force-readdirp

二、默认配置及默认值

1、默认配置中继

在./vols/tank/tank-fuse.vol(客户端)文件中,默认会配置如下中继器:

dht和性能相关的write-behind, read-ahead, io-cache, quick-read, open-behind, stat-prefetch(md-cache).

在./vols/tank/tank.node1.data-disk3.vol同类(服务器端)文件中,默认会设置如下中继器参数:

posix、access-control、locks、io-threads、index、maker

2、默认配置项值

cache-size

io-cahce:cache-size:默认32MB

Size of the read cache

quick-read:cache-size:默认128MB

Size of the read cache

gluster volume set tank cache-size 32MB

该命令导致的cache-size更新包含两个部分,一个是io-cache里对应的cache大小,一个是quick-read里的cache大小。

从源代码上看,这两个cache-size对应同一个key,所以会出现一改全改的现象,应该是一个bug。

read-ahead:page-count:默认值4

key为performance.read-ahead-page-count,可以通过该选项进行设置。

gluster volume set tank read-ahead-page-count 4

Number of pages that will be pre-fetched

write-behind:"cache-size"或者"window-size":默认值1MB

key为performance.write-behind-window-size,可以通过该选项进行设置。

gluster volume set tank write-behind-window-size 1MB

Size of the write-behind buffer for a single file (inode).

io-threads:thread-count:默认16

key:performance.io-thread-count

gluster volume set tank io-thread-count 16

Number of threads in IO threads translator which perform concurrent IO operations at a given time

该配置保存在/vols/tank/tank.node1.data-disk3.vol同类文件中。

md-cache:md-cache-timeout:默认值1(亦stat-prefetch)

gluster volume set tank md-cache-timeout 1

该操作会更改md-cache中继器md-cache-timeout选项的默认值

Time period after which cache has to be refreshed

io-cache:cache-timeout:默认值1

key:performance.cache-refresh-timeout

gluster volume set tank cache-refresh-timeout 1

cache-timeout:The cached data for a file will be retained till 'cache-refresh-timeout' seconds, after which data re-validation is performed.

备注:默认参数基于GlusterFS 3.4.5

到此,关于"gluster中继器默认值是什么"的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注网站,小编会继续努力为大家带来更多实用的文章!

中继 中继器 配置 学习 性能 文件 两个 参数 可以通过 同类 大小 更多 帮助 实用 接下来 命令 备注 客户 客户端 文章 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 关系型数据库的一行叫什么 linux应用服务器 舆情网络安全教育主题班会 福建软件开发流程 曙光服务器开机技巧 迈瑞软件开发要求 西湖论剑网络安全大会ppt 珠海船歌互联网科技有限公司 软件开发的职业特征 我国何时有网络服务器 网络连接服务器中断怎么办 服务器系统如何打开服务管理 三国群英传7数据库 有关于网络安全的小学生电影 软件开发到测试的过程 网页游戏是用什么软件开发的 中宏经济数据库热点专家 数据库日志在c盘哪里 软件开发需要风投 验证码软件开发 如何用数据库进行世界史研究 网络安全教育主题的微视频 我国何时有网络服务器 爱可生 数据库 软件开发合同的合同履行地 黎明杀机连接不上rtm服务器 魔兽2.43数据库 上海阿里巴巴软件开发招聘信息网 淘入式和网络安全哪个有前途 淄博供暖行业自动化控制软件开发
0