package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
CheckPDVersion checks the version of PD.
CheckTiKVVersion checks the version of TiKV.
Compact performs a leveled compaction with the given minimum level.
FetchMode obtains the import mode status of the TiKV node.
FetchModeFromMetrics obtains the import mode status from the Prometheus metrics of a TiKV node.
FetchRemoteDBModelsFromTLS obtains the remote DB models from the given TLS.
FetchRemoteTableModelsFromTLS obtains the remote table models from the given TLS.
ForAllStores executes `action` in parallel for all TiKV stores connected to a PD server.
ForTiKVVersions runs the given action for all versions of TiKV nodes.
SwitchMode changes the TiKV node at the given address to a particular mode.
# Constants
StoreStateDisconnected means the TiKV store does not respond to PD.
StoreStateDown means the TiKV store does not respond to PD for a long time (> 30 minutes).
StoreStateOffline means the TiKV store is in the process of being taken offline (but is still accessible).
StoreStateTombstone means the TiKV store is shut down and the data has been evacuated.
StoreStateUp means the TiKV store is in service.
# Type aliases
StoreState is the state of a TiKV store.