众所周知,glusterfs对小文件而言,就是个鸡肋,特别是在一个目录下有过W的小文件图片时,ls简单就是个坑,下面我对线上的glusterfs参数做一些优化调整,调整的命令:
gluster volume set VOLNAME OPTION PARAMETER
参数如下:
cluster.data-self-heal-algorithm ( full/diff )
cluster.min-free-disk ( Required minimum free disk space as a percentage like 30%)
cluster.self-heal-window-size ( 0 < data-self-heal-window-size < 1025)
cluster.stripe-block-size (size in bytes )
cluster.quorum-type (quorum method)
cluster.quorum-count (# needed for quorum)
diagnostics.brick-log-level ( DEBUG|INFO|WARNING|ERROR|CRITICAL|NONE|TRACE )
diagnostics.client-log-level (DEBUG|INFO|WARNING|ERROR|CRITICAL|NONE|TRACE )
diagnostics.latency-measurement ( ON|OFF )
diagnostics.dump-fd-stats ( ON|OFF )
features.quota-timeout ( 0 < 3600 secs )
geo-replication.indexing ( ON|OFF )
network.frame-timeout ( 1800 secs)
network.ping-timeout ( 42 secs)
performance.cache-max-file-size ( size in bytes )
performance.cache-min-file-size ( size in bytes )
performance.cache-refresh-timeout ( 0 < cache-timeout < 61 )
performance.cache-size