Threads statistics


Job details

Name: Threads statistics
Platform: Mariadb
Category: Performance
Description: Checks the number of threads created per minute.
Long description: ‘thread’, mean either a client connection or an OS thread and there is 1-1 correspondence between threads and connections.
Version: 1.1
Default schedule: 2,7,12,17,22,27,32,37,42,47,52,57 * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & is_mariadb_branch=‘1′]/.[hasengine=‘YES’ & global_status_information_schema = ‘1′ ]

Parameters

Name Default value Description
warning threshold 30 The maximum value of created threads per minute (over a period of time defined by the [time threshold] parameter) before a warning is triggered.
alarm threshold 600 The maximum value of created threads per minute (over a period of time defined by the [time threshold] parameter) before an alarm is triggered.
threshold (time) 20 A period of time (in minutes) which must be passed (combined with the number of aborted clients) before an alarm or a warning is returned by the procedure.
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 threads_created, threads_created_diff, threads_cached, threads_connected, histr_date from dbw_threads_statistics_histr order by histr_date asc;

Implementation Details

Dependency Structure

Parameters Management

Reporting Mechanism

Conclusion

This job forms an integral part of the database performance monitoring suite in dbWatch Control Center by providing administrators with detailed and actionable insights into thread usage and management in a MariaDB environment. This proactive monitoring facilitates better resource management and performance tuning in dynamic database environments.