搜索

此内容没有您所选择的语言版本。

Appendix A. The virt group profile

download PDF
The /var/lib/glusterd/groups/virt file defines a configuration that is used for all volumes in the virt group. Defining a group configuration and adding volumes to a group helps save time and effort when you want to update the settings on all volumes in the group.
The default contents of the /var/lib/glusterd/groups/virt file are as follows:
performance.quick-read=off
performance.read-ahead=off
performance.io-cache=off
performance.low-prio-threads=32
network.remote-dio=enable
cluster.eager-lock=enable
cluster.quorum-type=auto
cluster.server-quorum-type=server
cluster.data-self-heal-algorithm=full
cluster.locking-scheme=granular
cluster.shd-max-threads=8
cluster.shd-wait-qlength=10000
features.shard=on
user.cifs=off
cluster.choose-local=off
client.event-threads=4
server.event-threads=4
performance.client-io-threads=on
The majority of these settings prevent caching in the client stack.
The cluster.eager-lock option optimizes write performance by using synchronous replication when there is a single writer to a file.
The cluster.data-self-heal option specifies how self-heal operations are performed.
The features.shard and features.shard-block-size options enable sharding behavior in the volume and set a block size appropriate for storing disk images.
The cluster.quorum-type=auto and cluster.server-quorum-type options enable client and server-side quorum to help ensure consistency and to prevent split-brain scenarios.

Note

The default settings of cluster.quorum-type=auto and cluster.server-quorum-type=server provide consistency at the cost of fault tolerance. Using these settings, if server-side quorum is not met, virtual machines pause because volumes are not available. If client-side quorum is not met, virtual machines pause even though a read-only replica pair is available. Manual intervention is then required to make the VMs resume the operations after the quorum is restored.
If fault tolerance is preferred over consistency, disable server-side and client-side quorum with the following commands:
# gluster volume reset volname server-quorum-type
# gluster volume reset volname quorum-type
See Supported Volume Options in the Red Hat Gluster Storage 3.5 Administration Guide for more information about any of these settings.
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.