TiDB

TiDB is a distributed HTAP database compatible with the MySQL protocol

Github星跟蹤圖

什么是TiDB?

TiDB(发音是:/'taɪdiːbi:/tai-D-B,词源:titanium)是一个混合交易/分析处理(HTAP)数据库。受Google F1和Google Spanner设计的启发,TiDB具有无限的横向扩展性,强大的一致性和高可用性。 TiDB的目标是作为在线交易和分析的一站式解决方案。

  • 水平可伸缩性
随着业务的增长,增加TiDB。只需添加更多机器,您就可以增加存储和计算的容量。

  • 与MySQL协议兼容

使用TiDB作为MySQL。在大多数情况下,您可以使用TiDB替换MySQL来为应用程序提供动力,而无需更改任何代码行。

  • 自动故障转移和高可用性
您的数据和应用程序始终处于开启状态。 TiDB可自动处理故障,并保护您的应用程序免受机器故障甚至整个数据中心的停机。

  • 一致的分布式交易

将TiDB视为一台单机RDBMS。您可以开始跨越多台机器的交易,而不必担心一致性问题。 TiDB使您的应用程序代码简单而强大。

  • 在线DDL
根据您的需求变化演变TiDB模式。您可以添加新的列和索引,而无需停止或影响正在进行的操作。

  • 支持多种存储引擎
给你最喜欢的引擎加电TiDB。 TiDB支持本地存储引擎,如GolevelDB和BoltDB,以及分布式存储引擎 TiKV

有关更多详细信息,请参阅我们如何构建TiDB

路线图

阅读路线图

快速入门

阅读快速入门

文档

建筑

贡献

欢迎并非常感谢捐款。请参阅 CONTRIBUTING.md 了解有关提交补丁和贡献工作流程的详细信息。

与我们联系

许可证

TiDB符合Apache 2.0许可证。有关详细信息,请参阅许可证文件。

致谢

概覽

名稱與所有者pingcap/tidb
主編程語言Go
編程語言Makefile (語言數: 12)
平台
許可證Apache License 2.0
發布數449
最新版本名稱v8.2.0-alpha (發布於 )
第一版名稱Beta20160630 (發布於 )
創建於2015-09-06 04:01:52
推送於2024-04-21 15:34:30
最后一次提交2024-04-20 01:30:08
星數36.1k
關注者數1.3k
派生數5.7k
提交數23.5k
已啟用問題?
問題數17892
打開的問題數3698
拉請求數27797
打開的拉請求數929
關閉的拉請求數6055
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?

LICENSE
Language
Build Status
Go Report Card
GitHub release
GitHub release date
CircleCI Status
Coverage Status
GoDoc

What is TiDB?

TiDB ("Ti" stands for Titanium) is an open-source NewSQL database that supports Hybrid Transactional and Analytical Processing (HTAP) workloads. It is MySQL compatible and features horizontal scalability, strong consistency, and high availability.

  • Horizontal Scalability

    TiDB expands both SQL processing and storage by simply adding new nodes. This makes infrastructure capacity planning both easier and more cost-effective than traditional relational databases which only scale vertically.

  • MySQL Compatible Syntax

    TiDB acts like it is a MySQL 5.7 server to your applications. You can continue to use all of the existing MySQL client libraries, and in many cases, you will not need to change a single line of code in your application. Because TiDB is built from scratch, not a MySQL fork, please check out the list of known compatibility differences.

  • Distributed Transactions with Strong Consistency

    TiDB internally shards table into small range-based chunks that we refer to as "regions". Each region defaults to approximately 100MiB in size, and TiDB uses a Two-phase commit internally to ensure that regions are maintained in a transactionally consistent way.

  • Cloud Native

    TiDB is designed to work in the cloud -- public, private, or hybrid -- making deployment, provisioning, operations, and maintenance simple.

    The storage layer of TiDB, called TiKV, became a Cloud Native Computing Foundation member project in 2018. The architecture of the TiDB platform also allows SQL processing and storage to be scaled independently of each other in a very cloud-friendly manner.

  • Minimize ETL

    TiDB is designed to support both transaction processing (OLTP) and analytical processing (OLAP) workloads. This means that while you may have traditionally transacted on MySQL and then Extracted, Transformed and Loaded (ETL) data into a column store for analytical processing, this step is no longer required.

  • High Availability

    TiDB uses the Raft consensus algorithm to ensure that data is highly available and safely replicated throughout storage in Raft groups. In the event of failure, a Raft group will automatically elect a new leader for the failed member, and self-heal the TiDB cluster without any required manual intervention. Failure and self-healing operations are also transparent to applications.

For more details and latest updates, see official TiDB blog.

Adopters

View the current list of in-production TiDB adopters here.

Roadmap

Read the Roadmap.

Quick start

Read the Quick Start Guide, which includes deployment methods using Ansible, Docker, and Kubernetes.

Getting Help

Documentation

Architecture

architecture

Contributing

Contributions are welcomed and greatly appreciated. See
CONTRIBUTING.md
for details on submitting patches and the contribution workflow.

License

TiDB is under the Apache 2.0 license. See the LICENSE file for details.

Acknowledgments

去到頂部