一、字段说明
| 字段名 | 类型 | 描述 |
| 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: 1no_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)
·表映射: 空数组 (暂无特殊表映射规则)
·进行中作业: 空 (当前无活跃回放作业)