summaryrefslogtreecommitdiff
path: root/How to show the mysql galera cluster status.md
blob: 27bb50fc3b61af8e0784825476b27d4a57122c58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
tags:
  - mysql
  - galera
  - howto
---
Can be queried using `SHOW STATUS`.

`sudo mysql --exec "SHOW STATUS LIKE 'wsrep%'"`

**wsrep_cluster_status:**
- Primary; desired state. Primary component (so the cluster is one big component). Quorum of nodes is present.
- Non-Primary; Part of a partition (the non primary one) of nodes, so the cluster is partitioned. Cluster lost quorum.
- Disconnected: The node is not connected to the cluster at all.