Chinaunix首页 | 论坛 | 博客
  • 博客访问: 482036
  • 博文数量: 108
  • 博客积分: 25
  • 博客等级: 民兵
  • 技术积分: 1134
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-29 19:43
文章分类

全部博文(108)

文章存档

2016年(10)

2015年(9)

2014年(73)

2013年(16)

我的朋友

分类: 服务器与存储

2014-07-18 14:50:42

To tune volume options

  • Tune volume options using the following command:

    # gluster volume set VOLNAME OPTION PARAMETER

    For example, to specify the performance cache size for test-volume:

    # gluster volume set test-volume performance.cache-size 256MB
    Set volume successful

The following table lists the Volume options along with its description and default value:

Note: The default options given here are subject to modification at any given time.

Option Description Default Value Available Options
cluster.self-heal-window-size Specifies the number of maximum number blocks per file for which self-heal process would be applied simultaneously. 16 0 < data-self-heal-window-size < 1025
cluster.data-self-heal-algorithm Selects between "full", "diff", and reset. The "full" algorithm copies the entire file from source to sinks. The "diff" algorithm copies to sinks only those blocks whose checksums don't match with those of source. Reset uses a heuristic model.

If the file does not exist on one of the subvolumes, or a zero-byte file exists (created by entry self-heal) the entire content has to be copied anyway, so there is no benefit from using the "diff" algorithm.

If the file size is about the same as page size, the entire file can be read and written with a few operations, which will be faster than "diff" which has to read checksums and then read and write.

reset full/diff
cluster.min-free-disk Specified the percentage of disk space that must be kept free.

Might be useful for non-uniform bricks.

10% Percentage of required minimum free disk space
cluster.stripe-block-size Specifies the size of the stripe unit that will read from or written to the striped servers.

Optionally different stripe unit sizes can be specified for different files, with the following pattern .

128 KB (for all files) size in bytes
diagnostics.brick-log-level Changes the log-level of the bricks. INFO DEBUG / WARNING / ERROR / CRITICAL / NONE / TRACE
diagnostics.client-log-level Changes the log-level of the clients. INFO DEBUG / WARNING / ERROR / CRITICAL / NONE / TRACE
performance.cache-max-file-size Sets the maximum file size cached by the io-cache translator. Can use the normal size descriptors of KB,MB,GB,TB or PB (ie. 6GB). Maximum size uint64. 2 ^ 64 -1 bytes size in bytes
performance.cache-min-file-size Sets the minimum file size cached by the io-cache translator. Values same as "max" above. 0B size in bytes
performance.cache-refresh-timeout The cached data for a file will be retained till 'cache-refresh-timeout' seconds, after which data re-validation is performed. 1 sec 0 < cache-timeout < 61
network.frame-timeout The time frame after which the operation has to be declared as dead, if the server does not respond for a particular operation. 1800 (30 mins) 1800 secs
network.ping-timeout The time duration for which the client waits to check if the server is responsive.

When a ping timeout happens, there is a network disconnect between the client and server. All resources held by server on behalf of the client get cleaned up. When a reconnection happens, all resources will need to be re-acquired before the client can resume its operations on the server. Additionally, the locks will be acquired and the lock tables updated.

This reconnect is a very expensive operation and should be avoided at the cost of client wait time for a network disconnect.

42 secs 42 secs
auth.allow 'IP addresses/Host name' of the clients which should be allowed to access the the volume. * (allow all) Valid IP address which includes wild card patterns including *, such as 192.168.1.*
auth.reject 'IP addresses/Host name' of the clients which should be denied to access the volume. NONE (reject none) NONE
performance.cache-size Size of the read cache. 32 MB size in bytes
performance.write-behind-window-size Size of the per-file write-behind buffer. 1 MB Write-behind cache size
performance.io-thread-count The number of threads in IO threads translator. 16 0 < io-threads < 65
performance.flush-behind If this option is set ON, instructs write-behind translator to perform flush in background, by returning success (or any errors, if any of previous writes were failed) to application even before flush is sent to backend filesystem. By default, this option is on. On On / Off
diagnostics.latency-measurement Statistics related to the latency of each operation would be tracked inside GlusterFS data-structures. off On / Off
diagnostics.dump-fd-stats Statistics related to file-operations would be tracked inside GlusterFS data-structures. off On / Off
nfs.disable Turn-off export of volume through NFS off On / Off
nfs.enable-ino32 For 32-bit nfs clients or applications that do not support 64-bit inode numbers or large files. Use this

option from the CLI to make Gluster NFS return 32-bit inode numbers instead. Applications that will benefit are those that were either:

  • Built 32-bit and run on 32-bit machines.
  • Built 32-bit on 64-bit systems.
  • Built 64-bit but use a library built 32-bit, especially relevant for python and perl scripts.

This option is disabled by default so NFS returns 64-bit inode numbers by default. Either of the conditions above can lead to application on Linux NFS clients failing with "Invalid argument" or "Value too large for defined data type" errors.

off On / Off
nfs.volume-access Set the access type for the specified sub-volume. read-write read-only
nfs.trusted-write If there is an UNSTABLE write from the client, STABLE flag will be returned to force the client to not to send a COMMIT request. 

In some environments, combined with a replicated GlusterFS setup, this option can improve write performance. This flag allows users to trust Gluster replication logic to sync data to the disks and recover when required. COMMIT requests if received will be handled in a default manner by fsyncing. STABLE writes are still handled in a sync manner.
off On / Off
nfs.trusted-sync All writes and COMMIT requests are treated as async. This implies that no write requests are guaranteed to be on server disks when the write reply is received at the NFS client. Trusted sync includes trusted-write behavior. off On / Off
nfs.export-dir By default, all sub-volumes of NFS are exported as individual exports. Now, this option allows you to export only the specified subdirectory or subdirectories in the volume. This option can also be used in conjunction with nfs3.export-volumes option to restrict exports only to the

subdirectories specified through this option. You must provide an absolute path.

Enabled for all sub directories. Enable / Disable
nfs.export-volumes Enable/Disable exporting entire volumes, instead if used in conjunction with nfs3.export-dir, can allow setting up only subdirectories as exports. on On / Off
nfs.rpc-auth-unix Enable/Disable the AUTH_UNIX authentication type. You must enable this option for better interoperability. However, you can disable it if required. on On / Off
nfs.rpc-auth-null Enable/Disable the AUTH_NULL authentication type. You must always enable this option. on On / Off
nfs.rpc-auth-allow Allow a comma separated list of addresses and/or hostnames to connect to the server. By default, all clients are disallowed. This allows you to define a general rule for all exported volumes. Reject All IP address or Host name
nfs.rpc-auth-reject IP- Addresses Reject a comma separated list of addresses and/or hostnames from connecting to the server. By default, all connections are disallowed. This allows you to define a general rule for all exported volumes. Reject All IP address or Host name
nfs.ports-insecure Allow client connections from unprivileged ports. By default only privileged ports are allowed. This is a global setting in case insecure ports are to be enabled for all exports using a single option. off On / Off
rpc-auth-allow-insecure Allow client connections from unprivileged ports. By default only privileged ports are allowed. This is a global setting in case insecure ports are to be enabled for all exports using a single option. on On / Off
nfs.addr-namelookup Turn-off name lookup for incoming client connections using this option. In some setups, the name server can take too long to reply to DNS queries resulting in timeouts of mount requests. Use this option to turn off name lookups during address authentication. Note, turning this off will prevent you from using hostnames in rpc-auth.addr.* filters. on On / Off
nfs.register-with- portmap For systems that need to run multiple NFS servers, you need to prevent more than one from registering with portmap service. Use this option to turn off portmap registration for Gluster NFS. on On / Off
nfs.port Use this option on systems that need Gluster NFS to be associated with a non-default port number. 38465- 38467 38465- 38467
geo-replication.indexing Use this option to automatically sync the changes in the filesystem from Master to Slave. off On / Off
features.quota-timeout For performance reasons, quota caches the directory sizes on client. You can set timeout indicating the maximum duration of directory sizes in cache, from the time they are populated, during which they are considered valid. . 0 0 < 3600 secs

阅读(1428) | 评论(0) | 转发(0) |
0

上一篇:gluster profile

下一篇:Hadoop使用中的问题

给主人留下些什么吧!~~