Option |
Default Value |
Description |
Available Options |
auth.allow |
* (allow all) |
被允许访问的客户端 |
192.168.1.* |
auth.reject |
NONE (reject none) |
被拒绝的客户端 |
192.168.2.* |
cluster.min-free-disk |
10% |
最小空余硬盘空间百分比 |
|
cluster.min-free-inodes |
5% |
最小空余inode百分比 |
|
cluster.entry-self-heal |
on |
是否启用修复模式 |
on|off |
cluster.metadata-self-heal |
on |
是否启用对元数据自我修复功能;用于复制卷模式的文件和目录。依赖于cluster.entry-self-heal的设定。 |
on|off |
cluster.data-self-heal |
on |
是否启用文件内容的自我修复功能;仅用于复制卷模式的文件。依赖于cluster.entry-self-heal的设定。 |
on|off |
cluster.self-heal-daemon |
on |
一个带有复制类型的卷,如果其中一台将其设为off,那么只有这台服务器上的文件不会自动愈合,而不影响其他服务器的自动愈合功能。依赖于cluster.entry-self-heal的设定 |
on|off |
cluster.heal-timeout |
600 |
cluster.self-heal-daemon |
|
cluster.self-heal-window-size |
1 |
每个文件同时自我修复的最大块数 |
1 - 1024 |
cluster.data-change-log |
on |
cluster.data-self-heal |
on|off |
cluster.metadata-change-log |
on |
cluster.metadata-self-heal |
on|off |
cluster.data-self-heal-algorithm |
null |
指定数据的修复算法:“full”是将整个源文件复制一份;“diff”是通过算法将不一致的文件块进行复制。如果该选项没有进行设置,那么他将动态的进行选择算法:如果文件不存在或是空文件,或文件大小相等时采用“full”;其他的选用“diff”。 |
full|diff |
cluster.stripe-block-size |
128KB |
条带类型卷中每个条带的大小。 |
|
diagnostics.brick-log-level |
INFO |
更改brick的日志等级 |
DEBUG|WARNING| |
diagnostics.client-log-level |
INFO |
更改客户日志等级 |
|
performance.cache-max-file-size |
0 |
被缓存的文件最大大小 |
|
performance.cache-min-file-size |
0 |
被缓存的文件最小大小 |
|
performance.cache-refresh-timeout |
1 |
数据被缓存的时间,单位秒。 |
1-60 |
performance.cache-size |
32MB |
读操作时缓存的容量 |
|
performance.io-thread-count |
16 |
并发的IO线程数量。 |
|
performance.least-rate-limit |
0 |
每秒最大处理最低 |
|
performance.write-behind-window-size |
1MB |
write-behind的buffer容量 |
|
performance.read-ahead-page-count |
4 |
预读取的页数。 |
|
features.encryption |
off |
是否为客户端启用加密。 |
on|off |
features.lock-heal |
off |
当客户端丢失链接时,服务器清理所有的锁;当客户端回复时,将向服务器重新申请。 |
on|off |
features.grace-timeout |
10 |
客户端断开连接时,服务端保持锁的时间。单位秒。 |
10-1800 |
network.inode-lru-limit |
16384 |
用于inode缓存的最大内存数量。单位M。 |
|
server.root-squash |
off |
当客户端使用root进行访问时,是否将其映射为匿名身份。 |
on|off |
server.statedump-path |
/tmp |
状态文件的转储的路径。 |
|
performance.write-behind |
on |
先把写操作发送到后端存储,同时返回给应用写操作完毕,而实际上写的操作还正在执行。使用后写转换器就可以像流水线一样把写请求持续发送。这个后写操作模块更适合使用在client端,以期减少应用的写延迟。 |
on|off |
performance.read-ahead |
on |
文件预读功能,如果读请求不是连续的,此选项无效。 |
on|off |
performance.readdir-ahead |
off |
目录预读功能。 |
on|off |
performance.io-cache |
on |
IO缓存,可以缓存住已经被读过的数据。 |
on|off |
performance.quick-read |
on |
用于读取小文件。 |
on|off |
performance.open-behind |
on |
IO缓存转换器读数据一次读page-size设置的大小的数据,并把读到的数据缓存起来指到cache-size设置的大小。 |
on|off |
performance.client-io-threads |
off |
IO缓存转换器会定期的根据文件的修改时间来验证缓存中相应文件的一致性。 |
on|off |
performance.force-readdirp |
TRUE |
Convert all readdir requests t readdirplus to collect stat info on each entry |
on|off |
features.file-snapshot |
off |
enable/disable file-snapshot feature in the volume |
on|off |
features.quota-deem-statfs |
off |
If set to on, it takes quota limits intoconsideration while estimating fs size. (df command) (Default is off) |
on|off |
nfs.enable-ino32 |
no |
客户端的nfs使用32位还是64位 |
on|off |
storage.owner-uid |
-1 |
在为虚拟机使用时,必须设定此参数相对应的uid值,否则虚拟机会创建失败。仅支持libvirt/KVM。 |
|
storage.owner-gid |
-1 |
在为虚拟机使用时,必须设定此参数相对应的gid值,否则虚拟机会创建失败。仅支持libvirt/KVM。 |
|
cluster.server-quorum-type |
null |
预防脑裂 |
server |
cluster.server-quorum-ratio |
null |
在线服务器的比率,有节点离线或者网络分裂时,系统举行点名,各个尚存在联系的节点组成一个圈子点名,出席率超过这个比率的,则认为本圈子有效,本圈子的系统继续运行; |
gluster参数说明
猜你喜欢
转载自blog.csdn.net/fuzhongfaya/article/details/80938078
今日推荐
周排行