pingcap/tidb-binlog
소개
TiDB binlog을 수집하고 병합하여 실시간 데이터 백업과 동기화를 지원하는 도구입니다.
시스템 및 인프라측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalTiDB-Binlog
TiDB-Binlog introduction
TiDB-Binlog is a tool used to collect TiDB's binary logs with the following features:
Data replication
Synchronize data from the TiDB cluster to heterogeneous databases.
Real-time backup and recovery
Backup the TiDB cluster into the Dump file and it can be used for recovery.
Multiple output format
Support MySQL, Dump file, etc.
History replay
Replay from any history point.
Documentation
Architecture

Service list
Pump is a daemon that receives real-time binlogs from tidb-server and writes in sequential disk files synchronously.
Drainer collects binlogs from each Pump in the cluster, transforms binlogs to various dialects of SQL, and applies to the downstream database or filesystem.
How to build
To check the code style and build binaries, you can simply run:
make build # build all components
If you only want to build binaries, you can run:
make pump # build pump
make drainer # build drainer
When TiDB-Binlog is built successfully, you can find the binary in the bin directory.
Run Test
Run all tests, including unit test and integration test
make test
See tests for how to execute and add integration tests.
Deployment
The recommended startup sequence: PD -> TiKV -> Pump -> TiDB -> Drainer
The best way to install TiDB-Binlog is via TiDB-Binlog-Ansible
Tutorial
Here's a tutorial to experiment with TiDB-Binlog (not for production use).
Config File
- Pump config file: pump.toml
- Drainer config file: drainer.toml
Contributing
Contributions are welcomed and greatly appreciated. See CONTRIBUTING.md for details on submitting patches and the contribution workflow.
License
TiDB-Binlog is under the Apache 2.0 license. See the LICENSE file for details.
관련 프로젝트 살펴보기
불러오는 중…