Galera Cluster node send queue


Job details

Name: Galera Cluster node send queue
Platform: Mariadb
Category: Cluster and Replication
Description: Checks current length of the send queue, which is the number of writesets waiting to be sent.
Long description: Checks current length of the send queue, which is the number of writesets waiting to be sent.
Version: 1.1
Default schedule: 2,12,22,32,42,52 * * *
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
warning threshold 20 The maximum value of queue length before a warning is triggered.
alarm threshold 100 The maximum value of queue length before an alarm is triggered.
enable warnings and alarms NO 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 AS 'Send Queue Length' FROM information_schema.global_status WHERE variable_name = 'wsrep_local_send_queue';

Implementation Details

The monitoring job works by executing several SQL statements and procedures to manage and record send queue data:

Reporting

The job includes a reporting template that presents:

Column Description
Send Queue Number of writesets waiting to be sent
History Date Date and time when the measurement was taken

Dependency Management

Dependencies include:

Configuration and Customization

Operational Schedules

This setup assures that database administrators have timely and relevant data to manage the Galera Cluster effectively, reducing the potential impact of cluster performance issues.