Overview
Scenarios
Product Architecture
Instance Types
Compatibility Notes
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. |
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)
피드백