Overview
Scenarios
Product Architecture
Instance Types
Compatibility Notes
Usage specification recommendations
INFORMATION_SCHEMA.META_CLUSTER_REPLICAS displays the metadata related to all replicas of RG within the instance.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. |
tdsql>select * from information_schema.META_CLUSTER_REPLICAS limit 1 \\G*************************** 1. row ***************************rep_group_id: 1792member_role: MEMBER_ROLE_FOLLOWERrep_group_state: RG_STATE_F_WORKINGmeta_version: 36member_version: 0key_range_version: 36quorum: 3node_name: node-tdsql3-86ea1ffe-001tdstore_ip_port: 10.0.36.9:6005last_report_time: 2024-08-19 17:30:01.444681last_working_time: 2024-08-19 17:30:01.444681rep_group_stats_approximate_size: 9720817rep_group_stats_approximate_keys: 3825rep_group_log_info_current_term: 9rep_group_log_info_committed_index: 8011rep_group_log_info_consecutive_applied_index: 8011rep_group_log_info_last_snapshot_index: 7997rep_group_log_info_first_index: 2rep_group_log_info_last_index: 8011rep_group_log_info_disk_index: 8011rep_group_log_info_applied_index: 8011rep_group_log_info_raft_log_sync_delay_seconds: 01 row in set (0.01 sec)
피드백