Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-19313

Threadpool : provide information schema tables for internals of generic threadpool

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.5.0
    • Server
    • None

    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.

      Attachments

        Issue Links

          Activity

            People

              wlad Vladislav Vaintroub
              wlad Vladislav Vaintroub
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.