TiDB
Open source开源的分布式 HTAP 数据库,计算与存储分离,兼容 MySQL 协议,支持在线水平扩缩容。
Basic info
From public sourcesOverview
TiDB 是国内开源数据库里社区最活跃的一个。架构上分成四层:TiDB Server 负责 SQL 解析与计算、TiKV 负责分布式存储、PD 负责调度与元数据、TiFlash 负责列式分析副本。任何一层都能单独扩机器,业务增长时加节点即可,不需要停机分库分表。
为什么选它
- 兼容 MySQL 协议,绝大多数 ORM 和客户端驱动不用改代码
- 支持在线 DDL 与弹性扩容,分库分表中间件那套改造可以省掉
- TiFlash 让实时报表和交易跑在同一个库里,避免离线同步链路
- 生态完整,备份恢复、数据迁移(DM)、监控(Grafana)都有官方组件
需要留意的地方
TiDB 是「大数据量才划算」的数据库。生产环境至少要三个 TiKV 节点,加上 TiDB 与 PD,五六台机器是起步门槛,小项目用单机 MySQL 更实在。另外事务模型是乐观锁为主,高冲突写入场景要用悲观锁模式,否则重试会拖慢响应。跨表 JOIN 大表时也要注意执行计划,必要时用 TiFlash。
上手建议
本地用 tiup playground 一条命令就能拉起完整集群,跑通后再用 tiup cluster 部署到测试环境。迁移现有 MySQL 时先用 DM 做全量加增量同步,双跑一段时间再切流量。
Download links
SourceUse the buttons below to get the installer.
Verify the file source and digital signature before installing. Back up important data. This site does not provide cracks, keygens or license bypasses.
By downloading you confirm you have read the disclaimer: we only facilitate distribution and do not warrant content, completeness or security. Disclaimer
Copyright & reports
The name, icons and trademarks of TiDB belong to PingCAP. This site only provides introductions and download links. Rights holders can report issues via the complaint form.
Disclaimer
Read before download- This site only facilitates distribution and makes no warranties about content, opinions, completeness or security.
- Any direct or indirect consequences of downloading, installing or using the software are solely the user’s responsibility.
- This site is not responsible for third-party opinions or statements contained in the software.
- Using this download service means you have read, understood and agreed to these terms.