TDSTORE_TSO_STATUS is used to query the running status of TSO, with each node returning one row of records.Field Name | Type | Description |
source | varchar(64) | TSO source type. TDSTORE: Timestamps are assigned by the TSO module within TDStore itself. MC: Timestamps are assigned by MetaCluster. |
source_address | varchar(64) | The RPC address of the TSO source. |
source_node_id | bigint unsigned | The Node ID of the TSO source node. When the source is MC, this value is 0. |
connection_mode | varchar(64) | Connection mode. LOCAL: The current node is the TSO Leader and assigns timestamps locally. REMOTE_TDSTORE: Obtains timestamps from the remote TDStore TSO Leader via RPC. When the source is MC, this field is NULL. |
lease_term | bigint | The current Raft lease term of the TSO Leader. When the source is MC, this field is NULL. |
in_lease | varchar(64) | Whether it is currently within a valid lease period. When the source is MC, this field is NULL. |
meta_term | bigint | The term value in the TSO persistent metadata. When the source is MC, this field is NULL. |
meta_unix_timestamp_ns | bigint | The Unix timestamp (in nanoseconds) recorded in the TSO persistent metadata. When the source is MC, this field is NULL. |
meta_start_from_ts | bigint unsigned | The start timestamp (start_from_ts) in the TSO persistent metadata, indicating that timestamps allocated by TSO will not be less than this value. When the source is MC, this field is NULL. |
meta_enable | varchar(64) | Whether TSO is enabled. When the source is MC, this field is NULL. |
sync_state | varchar(64) | TSO synchronization state. UNINITIALIZED: Not initialized. ENABLED: Enabled and functioning normally. DISABLED: Disabled. When the source is MC, this field is NULL. |
last_physical_ts | bigint unsigned | The physical timestamp last allocated by TSO. When the source is MC, this field is NULL. |
last_logical_ts | bigint unsigned | The logical timestamp last allocated by TSO. When the source is MC, this field is NULL. |
tdsql > SELECT * FROM information_schema.TDSTORE_TSO_STATUS\\G*************************** 1. row ***************************source: MCsource_address: 10.10.10.10:2913source_node_id: 0source_replication_group_id: 0connection_mode: NULLlease_term: NULLin_lease: NULLmeta_term: NULLmeta_unix_timestamp_ns: NULLmeta_start_from_ts: NULLmeta_enable: NULLsync_state: NULLlast_physical_ts: NULLlast_logical_ts: NULL*************************** 2. row ***************************source: MCsource_address: 10.10.10.10:2913source_node_id: 0source_replication_group_id: 0connection_mode: NULLlease_term: NULLin_lease: NULLmeta_term: NULLmeta_unix_timestamp_ns: NULLmeta_start_from_ts: NULLmeta_enable: NULLsync_state: NULLlast_physical_ts: NULLlast_logical_ts: NULL*************************** 3. row ***************************source: MCsource_address: 10.10.10.10:2913source_node_id: 0source_replication_group_id: 0connection_mode: NULLlease_term: NULLin_lease: NULLmeta_term: NULLmeta_unix_timestamp_ns: NULLmeta_start_from_ts: NULLmeta_enable: NULLsync_state: NULLlast_physical_ts: NULLlast_logical_ts: NULL3 rows in set (0.02 sec)
tdsql> SELECT * FROM information_schema.TDSTORE_TSO_STATUS\\G*************************** 1. row ***************************source: TDSTOREsource_address: 9.135.146.74:2952source_node_id: 2source_replication_group_id: 1792connection_mode: REMOTE_TDSTORElease_term: 0in_lease: NOmeta_term: 0meta_unix_timestamp_ns: 0meta_start_from_ts: 0meta_enable: NOsync_state: DISABLEDlast_physical_ts: 0last_logical_ts: 0*************************** 2. row ***************************source: TDSTOREsource_address: 9.135.146.74:2952source_node_id: 2source_replication_group_id: 1792connection_mode: REMOTE_TDSTORElease_term: 0in_lease: NOmeta_term: 0meta_unix_timestamp_ns: 0meta_start_from_ts: 0meta_enable: NOsync_state: UNINITIALIZEDlast_physical_ts: 0last_logical_ts: 0*************************** 3. row ***************************source: TDSTOREsource_address: :-1source_node_id: 2source_replication_group_id: 1792connection_mode: LOCALlease_term: 5in_lease: YESmeta_term: 5meta_unix_timestamp_ns: 1773216046000000000meta_start_from_ts: 29749624189222912meta_enable: YESsync_state: ENABLEDlast_physical_ts: 1773216043last_logical_ts: 163 rows in set (0.00 sec)
フィードバック