前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >gluster性能相关中继器默认值说明

gluster性能相关中继器默认值说明

作者头像
党志强
发布2020-02-01 17:07:16
1.4K0
发布2020-02-01 17:07:16
举报
文章被收录于专栏:敏而好学敏而好学

一、性能相关中继器

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

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2016-08-14 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 一、性能相关中继器
    • write-behind, read-ahead, io-cache, quick-read, open-behind, stat-prefetch(md-cache), io-threads(默认server端)
    • 二、默认配置及默认值
      • 1、默认配置中继
        • 2、默认配置项值
        领券
        问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档