tencent cloud

TDSQL Boundless

Release Notes
Product Introduction
Overview
Scenarios
Product Architecture
Instance Types
Compatibility Notes
Usage specification recommendations
Kernel Features
Kernel Overview
Kernel Version Release Notes
Functionality Features
Performance Features
Billing
Billing Overview
Purchase Method
Pricing Details
Renewal
Overdue Payments
Refund
Getting Started
Creating an Instance
Connect to Instances
User Guide
Data Migration
Data Subscription
Instance Management
Parameter Configuration
Account Management
Security Group
Backup and Restoration
Database Auditing
Tag Management
Use Cases
Technical Evolution and Usage Practices of Online DDL
Lock Mechanism Analysis and Troubleshooting Practices
Data Intelligent Scheduling and Related Practices for Performance Optimization
TDSQL Boundless Selection Guide and Practical Tutorial
Developer Guide
Developer Guide (MySQL Compatibility Mode)
Developer Guide (HBase Compatibility Mode)
Performance Tuning
Performance Tuning Overview
SQL Tuning
DDL Tuning
Performance White Paper
Performance Overview
TPC-C Test
Sysbench Test
API Documentation
History
Introduction
API Category
Making API Requests
Instance APIs
Security Group APIs
Task APIs
Backup APIs
Rollback APIs
Parameter APIs
Database APIs
Data Types
Error Codes
General Reference
System Architecture
SQL Reference
Database Parameter Description
TPC-H benchmark data model reference
Error Code Information
Security and Compliance
FAQs
Agreements
Service Level Agreement
Terms of Service
Privacy Policy
Data Processing And Security Agreement
Contact Us
Glossary

META_CLUSTER_REPLICAS

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-02-10 11:06:29

Function

INFORMATION_SCHEMA.META_CLUSTER_REPLICAS displays the metadata related to all replicas of RG within the instance.

Field Description

Field Name
Type
Description
rep_group_id
bigint unsigned
RG ID.
member_role
varchar(64)
MEMBER_ROLE_FOLLOWER, MEMBER_ROLE_LEADER, and MEMBER_ROLE_LEARNER are supported replica roles.
rep_group_state
varchar(64)
RG status.
meta_version
bigint
Metadata Version.
member_version
bigint
Membership change version.
key_range_version
bigint
Key range version number.
quorum
int unsigned
Legal Quorum.
node_name
varchar(320)
Node name where it is located.
tdstore_ip_port
varchar(64)
address of the TDStore node.
last_report_time
varchar(64)
Last reported time of the heartbeat.
last_working_time
varchar(64)
The last time the replica was in a working state (WORKING, SPLIT, or MERGE).
rep_group_stats_approximate_size
bigint unsigned
The approximate data size of the replica in bytes.
rep_group_stats_approximate_keys
bigint unsigned
Approximate number of keys in the replica.
rep_group_log_info_current_term
bigint unsigned
Current Leader term.
rep_group_log_info_committed_index
bigint unsigned
The committed log index.
rep_group_log_info_consecutive_applied_index
bigint unsigned
Applied log index.
rep_group_log_info_last_snapshot_index
bigint unsigned
The log index of the last snapshot taken.
rep_group_log_info_first_index
bigint unsigned
The starting log index of the Raft Log retained in memory, indicating that logs before this have been purged.
rep_group_log_info_last_index
bigint unsigned
The last log index of the Raft Log retained in memory.
rep_group_log_info_disk_index
bigint unsigned
The persisted log index of the Raft Log.
rep_group_log_info_applied_index
bigint unsigned
Applied index of the Raft Log.
rep_group_log_info_raft_log_sync_delay_seconds
bigint unsigned
Delay of replica log synchronization.

Examples

tdsql>select * from information_schema.META_CLUSTER_REPLICAS limit 1 \\G
*************************** 1. row ***************************
rep_group_id: 1792
member_role: MEMBER_ROLE_FOLLOWER
rep_group_state: RG_STATE_F_WORKING
meta_version: 36
member_version: 0
key_range_version: 36
quorum: 3
node_name: node-tdsql3-86ea1ffe-001
tdstore_ip_port: 10.0.36.9:6005
last_report_time: 2024-08-19 17:30:01.444681
last_working_time: 2024-08-19 17:30:01.444681
rep_group_stats_approximate_size: 9720817
rep_group_stats_approximate_keys: 3825
rep_group_log_info_current_term: 9
rep_group_log_info_committed_index: 8011
rep_group_log_info_consecutive_applied_index: 8011
rep_group_log_info_last_snapshot_index: 7997
rep_group_log_info_first_index: 2
rep_group_log_info_last_index: 8011
rep_group_log_info_disk_index: 8011
rep_group_log_info_applied_index: 8011
rep_group_log_info_raft_log_sync_delay_seconds: 0
1 row in set (0.01 sec)

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백