#### 23.6.14.62 ndbinfo 线程表

[](<>)

这`线程`表提供了有关在`新开发银行`核心。

这`线程`表包含以下列：

-   `node_id`

    线程所在节点的ID

-   `thr_no`

    线程 ID（特定于此节点）

-   `线程名`

    线程名称（线程类型）

-   `线程描述`

    螺纹（类型）说明

##### 笔记

此处显示了 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 引入了设置任一[`线程配置`](mysql-cluster-ndbd-definition.html#ndbparam-ndbmtd-threadconfig)论据`主要的`要么`代表`为 0，而另一个保持为 1，在这种情况下，线程名称为`main_rep`它的描述是`主线程和代表线程、模式、分发、代理块和异步复制处理`.也可以从 NDB 8.0.23 开始同时设置`主要的`和`代表`为 0，在这种情况下，生成的线程的名称在此表中显示为`main_rep_recv`, 它的描述是`main、rep 和 recv 线程、模式、分发、代理块和异步复制处理和处理接收和轮询新接收`.
