MySQL 8.0 リファレンスマニュアル / ... / MySQL NDB Cluster 8.0 / NDB Cluster の管理 / ndbinfo: NDB Cluster 情報データベース / ndbinfo threads テーブル
このページは機械翻訳したものです。
threads テーブルは、NDB カーネルで実行されているスレッドに関する情報を提供します。
threads テーブルには、次のカラムがあります:
node_idスレッドが実行中のノードの ID
thr_noスレッド ID (このノードに固有)
thread_nameスレッド名 (スレッドのタイプ)
thread_descriptionスレッド (タイプ) の説明
メモ
スレッドの説明を含む、2 ノードのサンプルクラスタからの出力例を次に示します:
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 以降では、main とrep の両方を 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 です。