◽ Galera Cluster
2020. 8. 7..
4:35
[MariaDB - Galera ] pc.weight : 정족수(투표권) 여러장 주기
https://mariadb.com/kb/en/wsrep_provider_options/#pcweight
pc.weight
- Description: Node weight, used for quorum calculation. See the Codership article Weighted Quorum.
- Dynamic: Yes
- Default: 1
SET GLOBAL wsrep_provider_options='pc.weight=2';를 주면 투표권을 2개를 가져
새로운 노드가 붙거나, 각종 장애가 발생 했을 때 투표권이 2개가 있는 노드가 조금 더 우위를 가질 수 있게
구성 할 수 있는 구조를 만들 수 있게 해주는 옵션이다.

기본값은 1이다.
전반적인 옵션 체크하는 명령어 정리
<Global var 확인>
show global status like 'wsrep_provider_option%';
<wsrep_provider option 확인>
SHOW VARIABLES LIKE 'wsrep_provider%';