Documentation Home
MySQL 8.0 リファレンスマニュアル
Download this Manual
PDF (US Ltr) - 36.1Mb
PDF (A4) - 36.2Mb


このページは機械翻訳したものです。

23.5.14.53 ndbinfo threads テーブル

threads テーブルは、NDB カーネルで実行されているスレッドに関する情報を提供します。

threads テーブルには、次のカラムがあります:

  • node_id

    スレッドが実行中のノードの ID

  • thr_no

    スレッド ID (このノードに固有)

  • thread_name

    スレッド名 (スレッドのタイプ)

  • thread_description

    スレッド (タイプ) の説明

メモ

スレッドの説明を含む、2 ノードのサンプルクラスタからの出力例を次に示します:

Press CTRL+C to copy
mysql> SELECT * FROM threads; +---------+--------+-------------+------------------------------------------------------------------+ | node_id | thr_no | thread_name | thread_description | +---------+--------+-------------+------------------------------------------------------------------+ | 5 | 0 | main | main thread, schema and distribution handling | | 5 | 1 | rep | rep thread, asynch replication and proxy block handling | | 5 | 2 | ldm | ldm thread, handling a set of data partitions | | 5 | 3 | recv | receive thread, performing receive and polling for new receives | | 6 | 0 | main | main thread, schema and distribution handling | | 6 | 1 | rep | rep thread, asynch replication and proxy block handling | | 6 | 2 | ldm | ldm thread, handling a set of data partitions | | 6 | 3 | recv | receive thread, performing receive and polling for new receives | +---------+--------+-------------+------------------------------------------------------------------+ 8 rows in set (0.01 sec)

NDB 8.0.23 では、ThreadConfig 引数 main または rep のいずれかを 0 に設定し、もう一方を 1 のままにする可能性が導入されています。この場合、スレッド名は main_rep で、その説明は main and rep thread, schema, distribution, proxy block and asynch replication handling です。 NDB 8.0.23 以降では、mainrep の両方を 0 に設定することもできます。この場合、生成されるスレッドの名前は main_rep_recv としてこのテーブルに表示され、その説明は main, rep and recv thread, schema, distribution, proxy block and asynch replication handling and handling receive and polling for new receives です。