Option: cluster.quorum-type
Default Value: none
Description: If value is "fixed" only allow writes if quorum-count bricks are present. If value is "auto" only allow writes if more than half of bricks, or exactly half including the first, are present.
如果设置为“fixed”,只允许在quorum-count数量的板块(bricks)在线时写入。
如果设置为“auto”,只允许超过一半的板块在线时写入,或者只允许一半的板块在第一次写入后继续写入。
Option: cluster.quorum-count
Default Value: (null)
Description: If quorum-type is "fixed" only allow writes if this many bricks or present. Other quorum types will OVERWRITE this value.
如果quorum-type设置为“fixed”,只允许设置数量的板块(brick)在线时可以写入。
如果quorum-type设置为其他值,设置的quorum-count值无效,会被覆盖。
板块(brick)本身会一直存在,除非对应的进程挂了。
服务器端仲裁
服务器端仲裁是由glusterd进程执行,但判断的是glusterfsd进程。
启用服务器端仲裁:server-quorum-type=server
服务器端负责仲裁检测
Option: cluster.server-quorum-type
Default Value: (null)
Description: This feature is on the server-side i.e. in glusterd. Whenever the glusterd on a machine observes that the quorum is not met, it brings down the bricks to prevent data split-brains. When the network connections are brought back up and the quorum is restored the bricks in the volume are brought back up.
描述:这个功能在服务器端实现,也就是在glusterd进程中。当glusterd检测到服务器端未达到法定人数时,就会停掉brick防止数据裂脑。当网络恢复达到法定人数时,就会恢复对应的brick。
Option: cluster.server-quorum-ratio
Default Value: (null)
Description: Sets the quorum percentage for the trusted storage pool.