mysql dump tidb_TiDB-Binlog: TiDB Binlog 组件用于收集 TiDB 的 binlog,并准实时同步给下游,如:TiDB/MySQL等...

TiDB-Binlog

icon?job=build_tidb_binlog_master

badge.svg?branch=master&t=9Zn2om

tidb-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

e907fdd77f8e06b6295c330001da4946.png

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值