gluster中继器默认值是什么

介绍

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

<强>一、性能相关中继器

<强> write - behind,预读、io-cache,快速阅读,open-behind, stat-prefetch (md-cache), <强> io-threads(默认服务器端)

<强>以上中继器默认全部开启,<强> 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,默认配置中继

在。/波动率/柜/tank-fuse。卷(客户端)文件中,默认会配置如下中继器:

<强> dht和性能相关的延迟写预读、io-cache,快速阅读,open-behind, stat-prefetch (md-cache)。

在。/波动率/柜/tank.node1.data-disk3。同卷类(服务器端)文件中,默认会设置如下中继器参数:

<强> posix,访问控制,锁,io-threads,指数,制造商

<强> 2,默认配置项值

<强>缓存大小

io-cahce:缓存大小:默认32 mb

读缓存的大小

快速阅读:缓存大小:默认128 mb

读缓存的大小

<强> gluster卷组柜缓存大小32 mb

该命令导致的缓存大小更新包含两个部分,一个是io-cache里对应的缓存大小,一个是快速阅读里的缓存大小。

从源代码上看,这两个缓存大小对应同一个键,所以会出现一改全改的现象,应该是一个错误。

<强>预读:页数:默认值4

为性能的关键。read-ahead-page-count,可以通过该选项进行设置。

<强> gluster体积设定tank  <强> read-ahead-page-count 4

的页面数量将预取

<强> write - behind:“cache-size"或者“window-size":默认值1 mb

为性能的关键。write-behind-window-size,可以通过该选项进行设置。

<强> gluster体积设定tank  <强> write-behind-window-size 1 mb

write - behind缓存的大小对单个文件(inode)。

<强> io-threads:线程数:默认16

关键:性能。io-thread-count

<>强gluster卷组柜io-thread-count 16

在IO线程的线程数量翻译which 执行并发IO操作在给定的时间

该配置保存在波动率/柜/tank.node1.data-disk3。同卷类文件中。

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

<强> gluster音量设置坦克md-cache-timeout 1

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

时期之后,必须刷新缓存

<强> io-cache: cache-timeout:默认值1

关键:性能。cache-refresh-timeout

<>强gluster音量设置坦克cache-refresh-timeout 1

cache-timeout:文件的缓存的数据将被保留,直到& # 39;cache-refresh-timeout& # 39;秒,之后数据后续执行。

<强>备注:默认参数基于从而3.4.5

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

gluster中继器默认值是什么