Binlog cache check


Job details

Name: Binlog cache check
Platform: Mariadb
Category: Performance
Description: Checks the number of transactions that used the temporary binary log cache but that exceeded the value of binlog_cache_size and used a temporary file to store statements from the transaction.
Long description: Checks the number of transactions that used the temporary binary log cache but that exceeded the value of binlog_cache_size and used a temporary file to store statements from the transaction.
Version: 2.32
Default schedule: 9,19,29,39,49,59 * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & is_mariadb_branch=‘1′]/.[hasengine=‘YES’ & global_status_performance_schema = ‘1′ ]

Parameters

Name Default value Description
warning threshold 10 Will give a warning if the disk use exceeds this value. (in %)
alarm threshold 20 Will give an alarm if the disk use exceeds this value. (in %)
threshold (time) 30 A period of time (in minutes) which must be passed (combined with average values of BINLOG_CACHE_USE) before an alarm or a warning is returned by the procedure.
min BINLOG_CACHE_USE 100 The minimum average value of BINLOG_CACHE_USE per seconds (over a period of time defined by the [time threshold] parameter) before a warning or an alarm is triggered.
enable warnings and alarms NO If set to “NO” (default), 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 "Binlog Cache Use" FROM performance_schema.global_status WHERE variable_name = 'BINLOG_CACHE_USE';

Detailed Analysis

Implementation Code

Reporting and Notification

By monitoring these aspects, the job supports maintaining the operational health and performance of MariaDB instances under management, thereby ensuring database reliability and efficiency.