tencent cloud

TDSQL Boundless

META_CLUSTER_REPLICAS

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 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)

Ajuda e Suporte

Esta página foi útil?

comentários