文件首頁
MySQL 8.4 參考手冊
相關文件 下載本手冊
PDF (美式信紙) - 39.9Mb
PDF (A4) - 40.0Mb
Man Pages (TGZ) - 258.5Kb
Man Pages (Zip) - 365.5Kb
Info (Gzip) - 4.0Mb
Info (Zip) - 4.0Mb


25.6.17.63 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)

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