MyISAM key cache check


Job details

Name: MyISAM key cache check
Platform: Mariadb
Category: Performance
Description: Checks the hit rate of the MyISAM key cache.
Long description: This job checks the hit rate of the MyISAM key cache. MyISAM stands for Indexed Sequential Access Method. It was the default storage engine for MySQL until December 2009. With the release of MySQL 5.5, MyISAM was replaced with InnoDB.
Version: 1.1
Default schedule: 3,8,13,18,23,28,33,38,43,48,53,58 * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & is_mariadb_branch=‘1′]/.[hasengine=‘YES’ & global_status_performance_schema = ‘0′ & global_status_information_schema = ‘1′ ]

Parameters

Name Default value Description
hit ratio warning threshold 95 If this threshold is reached over a period of time (controlled by parameters “warning/alarm threshold (time)”), a warning is returned.
hit ratio alarm threshold 80 If this threshold is reached over a period of time (controlled by parameters “warning/alarm threshold (time)”), an alarm is returned.
history threshold 7 The maximum number of day to kept statistics for in the history table.
alarm threshold (time) 30 A period of time (in minutes) which must be passed (combined with average values of KEY_READ_REQUESTS) before an alarm is returned by the procedure.
min KEY_READ_REQUESTS 10000 The minimum average value of KEY_READ_REQUESTS (over a period of time defined by the “alarm/warning threshold (time)” parameters) before an alarm or a warning is triggered. KEY?READ?REQUESTS is the number of requests to read a key block from the MyISAM key cache.
warning threshold (time) 30 A period of time (in minutes) which must be passed (combined with average values of KEY_READ_REQUESTS) before a warning is returned by the procedure.
enable warnings and alarms NO If set to “NO” (default), the alert will only collect performance statistics without returning status warning or alarm.

Job Summary

Job Details

Metrics Collected

Metric Description
Key Reads Number of requests to read a key block from cache.
Key Read Requests Total number of requests for reading a key, whether served from cache or disk.
Hit Ratio Percentage of key read requests served successfully from the cache.

Thresholds and Warnings

Tables and Dependencies

Reporting

This monitoring job is designed for proactive performance tuning, offering insights into typical scenarios where tuning the MyISAM key cache could lead to significant improvements in database responsiveness and efficiency.