Instance memory statistics


Job details

Name: Instance memory statistics
Platform: Mariadb
Category: Performance
Description: Collects instance memory statistics.
Long description: Collects instance memory statistics.
Version: 1.1
Default schedule: 10,30,50 * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & is_mariadb_branch=‘1′]/.[hasengine=‘YES’ & global_status_performance_schema = ‘1′ ]

Parameters

Name Default value Description
history threshold 7 The maximum number of day to kept statistics for in the historic tables.

Job Summary

SELECT variable_name, variable_value FROM information_schema.GLOBAL_VARIABLES WHERE variable_name LIKE '%size%' OR variable_name = 'THREAD_STACK';

Key Features

Implementation Overview

The complexity of monitoring and managing a MariaDB instance’s memory involves:

Dependencies and Cleanup

The job has dependencies upon several internal objects and procedures:

Dependency Description
dbw_instance_memory_statistics Generates current memory stats
dbw_instance_memory_statistics_histr Stores historical memory data
dbw_instance_memory_statistics_last Holds the latest memory data points
dbw_instance_memory_statistics_mode Keeps information on server modes affecting memory allocation

On failure, the job is designed to clean itself up, removing the tables and procedures it uses to prevent clutter or partial data collection scenarios.

Data Collection and Reporting Mechanism

Scheduling

Additional Notes