tiup
TiDB component and cluster manager
TLDR
Start local TiDB playground
SYNOPSIS
tiup component [args...]
tiup [command] [options]
DESCRIPTION
tiup is the component manager for TiDB, a MySQL-compatible distributed database. It manages installation, deployment, and operations of TiDB clusters.
tiup playground starts a local development cluster with TiDB, PD (placement driver), and TiKV (storage) components. Connect using any MySQL client on port 4000.
Production deployments use tiup cluster with YAML topology files. The topology defines hosts, ports, directories, and component placement. deploy creates the cluster; start runs it.
TiDB is MySQL-compatible; use standard MySQL clients and drivers. TiFlash provides columnar storage for analytics workloads.
TiUP components include monitoring (Prometheus, Grafana), diagnostic tools, and utilities. tiup list shows available components.
COMMANDS
playground
Start local test cluster.cluster deploy|start|stop|destroy|display|scale-out|scale-in
Manage production clusters.install component
Install a TiUP component.update component
Update a component.list
List available components.status
Show running components.clean
Clean component data.uninstall component
Remove a component.--version
Show TiUP version.
PLAYGROUND OPTIONS
--db count
Number of TiDB instances.--pd count
Number of PD instances.--kv count
Number of TiKV instances.--tiflash count
Number of TiFlash instances.--host address
Bind address.--db.port port
TiDB port. Default: 4000.--pd.port port
PD port. Default: 2379.
CLUSTER OPTIONS
deploy name version topology
Deploy cluster from topology file.start name
Start cluster.stop name
Stop cluster.destroy name
Remove cluster.scale-out name topology
Add nodes.scale-in name --node host:port
Remove nodes.upgrade name version
Upgrade cluster.
CAVEATS
TiDB is mostly MySQL-compatible but some features differ or are unsupported. Minimum 3-node PD for production high availability. TiKV requires SSD storage. Resource requirements scale with data size.
HISTORY
TiDB was created by PingCAP and first released in 2015. Inspired by Google Spanner and F1, it combines MySQL compatibility with horizontal scalability. TiKV, the storage layer, joined CNCF and graduated in 2020. TiDB is widely used for HTAP (hybrid transactional/analytical) workloads, especially in Asia. Major versions release annually with LTS support.
