tencent cloud

TDSQL Boundless

LOGSERVICE_META

PDF
聚焦模式
字号
最后更新时间: 2026-03-06 18:48:08

功能

INFORMATION_SCHEMA.LOGSERVICE_META用于展示实例中 LogService 的元信息。该视图提供了 LogService 的基本配置、分布拓扑和运行参数等关键信息,是监控和管理分布式日志服务的基础视图。

字段说明

字段名
类型
描述
sid
bigint unsigned
LogService 唯一标识
create_ts
bigint unsigned
LogService 创建的时间戳
name
varchar(64)
LogService 名称
nodes
varchar(256)
LogService 分布的节点列表,多个节点以逗号分隔
log_service_type
varchar(64)
LogService 类型
LOG_SERVICE_TYPE_BINLOG: Binlog 日志服务
其他自定义日志服务类型
client_info_type
varchar(64)
LogService 回放端的类型标识
no_use_table_history
smallint
是否禁用 table-history 表回放功能(0:启用, 1:禁用)
no_use_table_history_in_cache
smallint
当前节点是否在禁用 table-history 表回放(0:启用, 1:禁用)
table_map
longtext
回放表映射关系,JSON 格式存储
ongoing_jobs
longtext
当前正在执行的回放作业信息

示例

tdsql > SELECT * FROM logservice_meta\\G
*************************** 1. row ***************************
sid: 29637288212299800
create_ts: 29637288212299801
name: [log_service_mysqlclient_pk_union]
nodes: node-***-001
log_service_type: LOG_SERVICE_TYPE_BINLOG
client_info_type: CLIENT_INFO_TYPE_MYSQL
no_use_table_history: 1
no_use_table_history_in_cache: 1
table_map: []
ongoing_jobs:
1 row in set (0.00 sec)

结果解读
基本信息:
LogService ID: 29637288212299800
名称: log_service_mysqlclient_pk_union
创建时间: 29637288212299801
分布拓扑:
部署节点: node-***-001 (单节点部署)
服务类型:
LogService 类型: Binlog 日志服务
客户端类型: MySQL 客户端
回放配置:
禁用表历史回放: 是 (no_use_table_history = 1)
该节点(执行此 SQL 的节点)禁用表历史回放: 是 (no_use_table_history_in_cache = 1)
表映射: 空数组 (暂无特殊表映射规则)
进行中作业: 空 (当前无活跃回放作业)

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈