您好,登錄后才能下訂單哦!
這篇文章主要介紹“gluster中繼器默認(rèn)值是什么”,在日常操作中,相信很多人在gluster中繼器默認(rèn)值是什么問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”gluster中繼器默認(rèn)值是什么”的疑惑有所幫助!接下來,請跟著小編一起來學(xué)習(xí)吧!
以上中繼器默認(rèn)全部開啟,symlink-cache默認(rèn)關(guān)閉。
NFS相關(guān)性能優(yōu)化中繼器
默認(rèn)開啟:
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)會配置如下中繼器:
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)會設(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更新包含兩個部分,一個是io-cache里對應(yīng)的cache大小,一個是quick-read里的cache大小。
從源代碼上看,這兩個cache-size對應(yīng)同一個key,所以會出現(xiàn)一改全改的現(xiàn)象,應(yīng)該是一個bug。
read-ahead:page-count:默認(rèn)值4
key為performance.read-ahead-page-count,可以通過該選項進行設(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,可以通過該選項進行設(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
該操作會更改md-cache中繼器md-cache-timeout選項的默認(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é)束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識,請繼續(xù)關(guān)注億速云網(wǎng)站,小編會繼續(xù)努力為大家?guī)砀鄬嵱玫奈恼拢?/p>
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。