MySQL 8.4 發行說明
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)
也可以將 ThreadConfig
引數 main
或 rep
的其中一個設定為 0,而將另一個保持為 1,在這種情況下,執行緒名稱為 main_rep
,其描述為 main 和 rep 執行緒、架構、分配、proxy block 和非同步複寫處理
。您也可以將 main
和 rep
都設定為 0,在這種情況下,此表格中顯示的結果執行緒名稱為 main_rep_recv
,其描述為 main、rep 和 recv 執行緒、架構、分配、proxy block 和非同步複寫處理,以及處理接收和輪詢新的接收
。