PmaControl logo PmaControl
  • Home
  • PmaControl
    • AI Agents 13 on-premise agents
    • Plans Community, Cloud, On-Premise, Premium
    • Documentation Guides, API, architecture
    • Clients 28+ companies
    • FAQ 25 questions / 7 categories
    Databases
    • MariaDB 30 articles
    • MySQL 10 articles
    • Galera Cluster 6 articles
    • MaxScale 3 articles
    • ProxySQL 2 articles
    • Amazon Aurora MySQL 0 article
    • Azure Database 0 article
    • ClickHouse 0 article
    • GCP CloudSQL 0 article
    • Percona Server 0 article
    • SingleStore 0 article
    • TiDB 0 article
    • Vitess 0 article
    Solutions
    • Support 24×7 MariaDB & MySQL emergencies
    • Observabilité SQL Monitoring, alerts, topology
    • Haute disponibilité Replication, failover, Galera
    • Disaster Recovery Backup, restore, RPO/RTO
    • Sécurité & conformité Audit, GDPR, SOC2
    • Migration & upgrade Zero downtime, pt-osc, gh-ost
  • Plans
  • Resources
    • Documentation Technical guides & API
    • FAQ 25 frequently asked questions
    • Testimonials Client feedback & use cases
    • Blog Articles & insights
    • Roadmap Upcoming features
    Areas of expertise
    • Observabilité SQL Monitoring, alerts, Dot3 topology
    • Haute disponibilité Replication, failover, Galera
    • Sécurité & conformité Audit, GDPR, SOC2, ISO 27001
    • Disaster Recovery Backup, restore, RPO/RTO
    • Performance & optimisation Digests, EXPLAIN, tuning
    • Migration & upgrade Zero downtime, pt-osc
    Quick links
    • GitHub Wiki 26 pages — install, engine, plugins
    • Source code Official GitHub repository
    • Support 24×7 MariaDB & MySQL emergencies
    • Book a demo 30 min — real architecture
  • Support 24×7
  • Book a demo
Book a demo
🇫🇷 FR Français 🇬🇧 EN English 🇵🇱 PL Polski 🇷🇺 RU Русский 🇨🇳 ZH 中文
Documentation › Galera Cluster

Galera Cluster

Quorum calculation — Nodes available

PmaControl computes the actually usable nodes in the Galera quorum:

Nodes available (X) =
  mysql_available = 1
  AND wsrep_cluster_status = Primary
  AND (
    wsrep_local_state_comment = Synced
    OR (Donor/Desync/Unsync AND wsrep_desync = OFF)
  )

This rule excludes nodes:

  • Non-Primary — Node outside the quorum
  • Disconnected — Node disconnected from the cluster
  • Inconsistent — Inconsistent data
  • Donor with wsrep_desync=ON — Intentionally desynchronized

The denominator Y (total) is always the total number of detected nodes, even if some are offline.

wsrep segments

Galera segments (gmcast.segment) are displayed as subgraphs in Dot3:

  • SEGMENT_OK — All nodes in the segment are Synced
  • SEGMENT_KO — No node in the segment is available
  • SEGMENT_PARTIAL — Only some nodes are available

IST / SST flow

PmaControl detects state transfers between nodes:

  • IST (Incremental State Transfer) — Incremental transfer via gcache
  • SST (State Snapshot Transfer) — Full transfer (mariabackup, rsync, mysqldump)

Dot3 displays a hint link donor→joiner when an SST/IST is in progress.

garb arbitrator

PmaControl detects the Galera arbitrator (garbd) via wsrep_incoming_addresses. The arbitrator appears in Dot3 as a virtual node — it participates in quorum voting without storing data.

wsrep-notify

The wsrep-notify.sh script (in documentation/wsrep-notify/) can be configured on each Galera node to log state changes in /var/log/galera.log.

# Dans my.cnf
[mysqld]
wsrep_notify_cmd = /usr/local/bin/wsrep-notify.sh
On this page
  • Quorum calculation — Nodes available
  • wsrep segments
  • IST / SST flow
  • garb arbitrator
  • wsrep-notify
← Previous page Next page →
PmaControl
+33 6 63 28 27 47 contact@pmacontrol.com
Legal notice GitHub Contact
Do not wait for an incident to understand your architecture. © 2014-2026 PmaControl — 68Koncept