25.6.17.63 Таблица ndbinfo threads
Таблица threads предоставляет информацию о потоках, выполняющихся в ядре NDB.
Таблица threads содержит следующие столбцы:
-
node_idИдентификатор узла, на котором выполняется поток
-
thr_noИдентификатор потока (специфичный для данного узла)
-
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
and rep thread, schema, distribution, proxy block and asynch
replication handling. Также можно установить оба 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.
© 2025 Oracle
Licensed under the GPLv2 License.