tencent cloud

TDSQL Boundless

LOGSERVICE_INFO

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2026-03-06 18:48:07

Function

INFORMATION_SCHEMA.LOGSERVICE_INFO is used to display metadata related to the LogService data unit (LogReceiver) within an instance.

Field Description

Field Name
Type
Description
rep_group_id
bigint unsigned
RG ID
sid
bigint unsigned
the unique identifier of LogService
node_name
varchar(64)
the node name where LogReceiver is deployed
node_addr
varchar(64)
the network address (IP address:Port) of the node where LogReceiver is deployed
leader_commit_index
bigint unsigned
During LogService creation, the commit index of the rep-group's Leader replica.
create_ts
bigint unsigned
the timestamp when LogReceiver was created
delete_ts
bigint unsigned
the timestamp when LogReceiver is marked for deletion (0 indicates not deleted)
is_pending
smallint
Indicates whether the LogReceiver is suspended (0: normal, 1: suspended).

Examples

tdsql> SELECT * FROM INFORMATION_SCHEMA.LOGSERVICE_INFO;
+--------------+-------------------+------------------------+---------------------+---------------------+-------------------+-------------------+------------+
| rep_group_id | sid | node_name | node_addr | leader_commit_index | create_ts | delete_ts | is_pending |
+--------------+-------------------+------------------------+---------------------+---------------------+-------------------+-------------------+------------+
| 16048685 | 29637288212299800 | node-***-001 | ***:*** | NULL | 29637329400367957 | 29637343912657087 | 0 |
| 32003329 | 29637288212299800 | node-***-005 | ***:*** | NULL | 29637465950126221 | 29637466285670778 | 0 |
| 23420940 | 29637288212299800 | node-***-001 | ***:*** | NULL | 29637391039873556 | 29637392667252366 | 0 |
+--------------+-------------------+------------------------+---------------------+---------------------+-------------------+-------------------+------------+
3 rows in set (3.74 sec)
Results Interpretation
The example shows three LogReceivers, each belonging to a different replica group.
LogReceiver is deployed on two different nodes.
All instances are in normal status (is_pending = 0).

Ajuda e Suporte

Esta página foi útil?

comentários