NDB data memory usage check


Job details

Name: NDB data memory usage check
Platform: Mysql
Category: Cluster and Replication
Description: NDB data memory usage check
Long description: This checks the usage of data memory in NDB cluster database
Version: 0.1
Default schedule: 0,30 * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & is_mysql_branch=‘1′]/.[hasengine=‘YES’ & global_status_performance_schema = ‘1′ ]

Parameters

Name Default value Description
warning threshold 80 Will give a warning if the data memory usage exceeds this value. (in %)
alarm threshold 90 Will give an alarm if the data memory usage exceeds this value. (in %)
give warning or alarm YES If this check should send warning or alarm. NO or YES

Job Summary

BEGIN;
  SELECT node_id, round(used/1024/1024,2) used, round(total/1024/1024,2) total, round((total-used)/1024/1024,2) as free, round((used/(total-used))*100,2) as usedpct FROM ndbinfo.memoryusage WHERE MEMORY_TYPE = 'Data memory' order by 1;
END;

Category and Dependencies

Implementation and Reporting

>Note: This job is specifically designed for MySQL branch instances with the NDB cluster engine enabled.