這篇文章主要介紹“gluster中繼器默認(rèn)值是什么”,在日常操作中,相信很多人在gluster中繼器默認(rèn)值是什么問(wèn)題上存在疑惑,小編查閱了各式資料,整理出簡(jiǎn)單好用的操作方法,希望對(duì)大家解答”gluster中繼器默認(rèn)值是什么”的疑惑有所幫助!接下來(lái),請(qǐng)跟著小編一起來(lái)學(xué)習(xí)吧!
成都創(chuàng)新互聯(lián)公司專注于霍山網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗(yàn)。 熱誠(chéng)為您提供霍山營(yíng)銷型網(wǎng)站建設(shè),霍山網(wǎng)站制作、霍山網(wǎng)頁(yè)設(shè)計(jì)、霍山網(wǎng)站官網(wǎng)定制、微信小程序服務(wù),打造霍山網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供霍山網(wǎng)站排名全網(wǎng)營(yíng)銷落地服務(wù)。
以上中繼器默認(rèn)全部開(kāi)啟,symlink-cache默認(rèn)關(guān)閉。
NFS相關(guān)性能優(yōu)化中繼器
默認(rèn)開(kāi)啟:
performance.nfs.write-behind
默認(rèn)關(guān)閉:
performance.nfs.read-ahead
performance.nfs.io-cache
performance.nfs.quick-read
performance.nfs.stat-prefetch
performance.nfs.io-threads
performance.force-readdirp
在./vols/tank/tank-fuse.vol(客戶端)文件中,默認(rèn)會(huì)配置如下中繼器:
dht和性能相關(guān)的write-behind, read-ahead, io-cache, quick-read, open-behind, stat-prefetch(md-cache).
在./vols/tank/tank.node1.data-disk3.vol同類(服務(wù)器端)文件中,默認(rèn)會(huì)設(shè)置如下中繼器參數(shù):
posix、access-control、locks、io-threads、index、maker
cache-size
io-cahce:cache-size:默認(rèn)32MB
Size of the read cache
quick-read:cache-size:默認(rèn)128MB
Size of the read cache
gluster volume set tank cache-size 32MB
該命令導(dǎo)致的cache-size更新包含兩個(gè)部分,一個(gè)是io-cache里對(duì)應(yīng)的cache大小,一個(gè)是quick-read里的cache大小。
從源代碼上看,這兩個(gè)cache-size對(duì)應(yīng)同一個(gè)key,所以會(huì)出現(xiàn)一改全改的現(xiàn)象,應(yīng)該是一個(gè)bug。
read-ahead:page-count:默認(rèn)值4
key為performance.read-ahead-page-count,可以通過(guò)該選項(xiàng)進(jìn)行設(shè)置。
gluster volume set tank read-ahead-page-count 4
Number of pages that will be pre-fetched
write-behind:"cache-size"或者"window-size":默認(rèn)值1MB
key為performance.write-behind-window-size,可以通過(guò)該選項(xiàng)進(jìn)行設(shè)置。
gluster volume set tank write-behind-window-size 1MB
Size of the write-behind buffer for a single file (inode).
io-threads:thread-count:默認(rèn)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:默認(rèn)值1(亦stat-prefetch)
gluster volume set tank md-cache-timeout 1
該操作會(huì)更改md-cache中繼器md-cache-timeout選項(xiàng)的默認(rèn)值
Time period after which cache has to be refreshed
io-cache:cache-timeout:默認(rèn)值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.
備注:默認(rèn)參數(shù)基于GlusterFS 3.4.5
到此,關(guān)于“gluster中繼器默認(rèn)值是什么”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實(shí)踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識(shí),請(qǐng)繼續(xù)關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編會(huì)繼續(xù)努力為大家?guī)?lái)更多實(shí)用的文章!