[컴] Galera 에서 Primary Component 란?

갈레라 /

Galera 에서 Primary Component 란?

from : The Primary Component in Galera Cluster — Galera Cluster Documentation

The Primary Component is that set of Galera nodes that can communicate with each other over the network and contains the majority of the nodes. In case of a network partition, it is those nodes that can safely commit a transaction. A cluster can only have one such set of nodes, as there can only be one majority. No other set of nodes will commit transactions, thus removing the possibility of two parts of the cluster committing different transactions and thus diverging and becoming inconsistent.

The Primary Component는 네트워크를 통해 서로 통신할 수 있고, majority of nodes를 포함하는 Galera 노드들의 집합이다. 네트워크 파티션에서는, 트랜잭션을 안전하게 commit할 수 있는 노드들이다. 클러스터에 과반수(majority)는 하나만 있을 것이기에 Primary Component 도 하나뿐이다. 다른 노드들의 집합은 트랜잭션을 commit 하지 않는다. 그렇게 해서, 클러스터의 두 부분이, 서로 다른 트랜잭션을 commit하여 diverging되고, inconsistent될 가능성을 제거한다.

See Also

  1. 쿠…sal: [컴][db] Galera Replication
  2. 쿠…sal: [컴][db] MariaDB Galera cluster 설정

댓글 없음:

댓글 쓰기