tencent cloud

TDSQL Boundless

Release Notes
Product Introduction
Overview
Scenarios
Product Architecture
Instance Types
Compatibility Notes
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
Configuration Change
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

TDSQL_RAFT_LEADER_SWITCH_RES

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

Function

Records of the Leader role switch in the Raft layer for TDStore and MC.

Field Description

Field Name
Type
Description
ID
int
Auto-increment ID.
module
ENUM("MC", "TDSTORE")
The module currently provides information about the leader switch for MC and TDStore.
idx
bigint unsigned
identifier for raft nodes.
switch_begin_time
bigint
Switch start time (millisecond-level timestamp).
switch_end_time
bigint
Switch end time (millisecond-level timestamp).
switch_used_time
bigint
Time taken for switch.
switch_reason
varchar(512)
Switch reason.
switch_type
int
Switch type.
switch_status
int
Switch status.
src_host
VARCHAR(128)
Address of the original Leader node.
dst_host
VARCHAR(128)
Address of the new Leader node.
is_success
int
Whether successful.
failure_reason
varchar(128)
Failure reason.

Examples

tdsql3_sys_local@localhost [sys]> select * from tdsql_raft_leader_switch_res;
+-----+---------+-------+-------------------+-----------------+------------------+---------------+-------------+---------------+----------------------+----------------------+------------+----------------+
| ID | module | idx | switch_begin_time | switch_end_time | switch_used_time | switch_reason | switch_type | switch_status | src_host | dst_host | is_success | failure_reason |
+-----+---------+-------+-------------------+-----------------+------------------+---------------+-------------+---------------+----------------------+----------------------+------------+----------------+
| 202 | TDSTORE | 72757 | 1733195593005 | 1733195593022 | 17 | | 0 | 0 | | node-******-1-001 | 1 | |
| 203 | MC | 0 | 1733280390626 | 1733280388221 | -2405 | | 0 | 0 | mc-******-1-1 | mc-******-1-2 | 0 | NULL |
| 401 | TDSTORE | 72757 | 1733195895171 | 1733195895181 | 10 | | 1 | 0 | node-******-1-001 | node-******-1-002 | 1 | |
+-----+---------+-------+-------------------+-----------------+------------------+---------------+-------------+---------------+----------------------+----------------------+------------+----------------+
3 rows in set (0.00 sec)

도움말 및 지원

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

피드백