From ab409a3701bf59dd73dc1e0324376bdac8b6d74f Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Fri, 18 Apr 2025 20:58:54 +0200 Subject: vault backup: 2025-04-18 20:58:54 --- How to show the mysql galera cluster status.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 How to show the mysql galera cluster status.md (limited to 'How to show the mysql galera cluster status.md') diff --git a/How to show the mysql galera cluster status.md b/How to show the mysql galera cluster status.md new file mode 100644 index 0000000..27bb50f --- /dev/null +++ b/How to show the mysql galera cluster status.md @@ -0,0 +1,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. \ No newline at end of file -- cgit v1.2.3