Galera Cluster node state


Job details

Name: Galera Cluster node state
Platform: Mariadb
Category: Cluster and Replication
Description: Checks then cluster node state value. When a node is part of the Primary Component, the following states can be returned; Joining, Waiting on SST, Joined, Synced or Donor.
Long description: Checks then cluster node state value. When a node is part of the Primary Component, the following states can be returned; Joining, Waiting on SST, Joined, Synced or Donor.
Version: 1.1
Default schedule: 4,14,24,34,44,54 * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & is_mariadb_branch=‘1′]/.[hasengine=‘YES’ & use_global_variables_information_schema = ‘1′ & wsrep_cluster != ‘0′]

Parameters

Name Default value Description
permitted state Synced The Galera Cluster permitted state value. The following states can be returned; Joining, Waiting on SST, Joined, Synced or Donor.
return status 2 Return status value (ALARM – 2, WARNING – 1, or OK – 0) when the Galera Cluster node state is different from “permitted state” parameter value.
enable warnings and alarms YES If set to “NO” the alert will only collect statistics without returning status warning or alarm. Value “YES“ will activate the alert.
history threshold 7 The maximum number of day to kept statistics for in the historic tables.

Job Summary

SELECT VARIABLE_VALUE FROM information_schema.global_status WHERE VARIABLE_NAME = 'wsrep_local_state_comment';

Implementation Details

This job involves various SQL operations and procedures:

Dependencies and Cleanup

The job has several dependencies:

In case of job failure, cleanup activities include:

DROP TABLE dbw_galera_cluster_node_state_histr;
DROP TABLE dbw_galera_cluster_node_state_last;
DROP PROCEDURE dbw_galera_cluster_node_state;

Reporting

The job provides a report template inside dbWatch which includes:

Table Format:

Galera Cluster node state Oldest history date Last history date

Compatibility and Installation

This job is specifically tailored for instances where:

The installation is marked for express and force install, ensuring that the job gets installed and replaces any existing versions if applicable.

Categories and Metadata

The job falls under the following category:

Overall, this dbWatch job plays a vital role in the proactive monitoring and management of Galera Clusters in MariaDB, dedicating resources to ensure cluster health and performance through continuous state validation and historical data tracking.