24.5 INFORMATION_SCHEMA Thread Pool Tables

The following sections describe the 'INFORMATION_SCHEMA' tables associated with the thread pool plugin (see *note thread-pool::). They provide information about thread pool operation:

Rows in these tables represent snapshots in time. In the case of note 'TP_THREAD_STATE': information-schema-tp-thread-state-table, all rows for a thread group comprise a snapshot in time. Thus, the MySQL server holds the mutex of the thread group while producing the snapshot. But it does not hold mutexes on all thread groups at the same time, to prevent a statement against note 'TP_THREAD_STATE': information-schema-tp-thread-state-table. from blocking the entire MySQL server.

The thread pool 'INFORMATION_SCHEMA' tables are implemented by individual plugins and the decision whether to load one can be made independently of the others (see *note thread-pool-installation::). However, the content of all the tables depends on the thread pool plugin being enabled. If a table plugin is enabled but the thread pool plugin is not, the table becomes visible and can be accessed, but is empty.

 File: manual.info.tmp, Node: information-schema-thread-pool-table-reference, Next: information-schema-tp-thread-group-state-table, Prev: thread-pool-information-schema-tables, Up: thread-pool-information-schema-tables

24.5.1 INFORMATION_SCHEMA Thread Pool Table Reference

The following table summarizes 'INFORMATION_SCHEMA' thread pool tables. For greater detail, see the individual table descriptions.

INFORMATION_SCHEMA Thread Pool Tables

Table Name Description

*note 'TP_THREAD_GROUP_STATE': information-schema-tp-thread-group-state-table.Thread pool thread group states

*note 'TP_THREAD_GROUP_STATS': information-schema-tp-thread-group-stats-table.Thread pool thread group statistics

*note 'TP_THREAD_STATE': information-schema-tp-thread-state-table.Thread pool thread information

 File: manual.info.tmp, Node: information-schema-tp-thread-group-state-table, Next: information-schema-tp-thread-group-stats-table, Prev: information-schema-thread-pool-table-reference, Up: thread-pool-information-schema-tables

24.5.2 The INFORMATION_SCHEMA TP_THREAD_GROUP_STATE Table

The *note 'TP_THREAD_GROUP_STATE': information-schema-tp-thread-group-state-table. table has one row per thread group in the thread pool. Each row provides information about the current state of a group.

The *note 'TP_THREAD_GROUP_STATE': information-schema-tp-thread-group-state-table. table has these columns:

 File: manual.info.tmp, Node: information-schema-tp-thread-group-stats-table, Next: information-schema-tp-thread-state-table, Prev: information-schema-tp-thread-group-state-table, Up: thread-pool-information-schema-tables

24.5.3 The INFORMATION_SCHEMA TP_THREAD_GROUP_STATS Table

The *note 'TP_THREAD_GROUP_STATS': information-schema-tp-thread-group-stats-table. table reports statistics per thread group. There is one row per group.

The *note 'TP_THREAD_GROUP_STATS': information-schema-tp-thread-group-stats-table. table has these columns:

 File: manual.info.tmp, Node: information-schema-tp-thread-state-table, Prev: information-schema-tp-thread-group-stats-table, Up: thread-pool-information-schema-tables

24.5.4 The INFORMATION_SCHEMA TP_THREAD_STATE Table

The *note 'TP_THREAD_STATE': information-schema-tp-thread-state-table. table has one row per thread created by the thread pool to handle connections.

The *note 'TP_THREAD_STATE': information-schema-tp-thread-state-table. table has these columns:

 File: manual.info.tmp, Node: connection-control-information-schema-tables, Next: firewall-information-schema-tables, Prev: thread-pool-information-schema-tables, Up: information-schema