[MDEV-19313] Threadpool : provide information schema tables for internals of generic threadpool Created: 2019-04-23  Updated: 2021-08-19  Resolved: 2019-05-26

Status: Closed
Project: MariaDB Server
Component/s: Server
Fix Version/s: 10.5.0

Type: Task Priority: Major
Reporter: Vladislav Vaintroub Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 1
Labels: None

Issue Links:
Duplicate
is duplicated by MDEV-5019 THREADPOOL - Create Information Schem... Closed
Relates
relates to MDEV-19167 Add stall-related status variables to... Closed

 Description   

Currently, not much internals of the generic threadpool are shown to the user.
However, there is some information that can be extracted from the internal structures, e.g

  • queue length for every group in the pool
  • queue contents, e.g high and low priority requests and their with corresponding connection ids
  • Currently not possible, but interesting - approximate queueing time(time spent in queue) for events
  • number of active, waiting, and idle threads per group
  • Currently not possible, but interesting - other statistics, like number of wakes, stalls, and thread creations per group.

The information is rather complicated to be fit into status variables, so the proposal is to implement it using I_S tables, e.g

  • I_S.threadpool_groups - the stats per group
  • I_S.threadpool_queue - queue contents

The overall statistics can be still calculated using SQL aggregation functions.


Generated at Thu Feb 08 08:50:42 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.