pingcap / tidb-binlog

A tool used to collect and merge tidb's binlog for real-time data backup and synchronization.
Apache License 2.0
292 stars 131 forks source link

TiDB Binlog high delay #768

Closed thuyenptr closed 5 years ago

thuyenptr commented 5 years ago

Hi, I'm testing TiDB Binlog in real-server but got high delay metrics reported. Detail:

Screen Shot 2019-10-16 at 15 41 47 Screen Shot 2019-10-16 at 15 42 39 Screen Shot 2019-10-16 at 15 44 05

My Drainer configuration is:

....
txn-batch = 1000
worker-count = 48
flag: --cache-binlog-count=6553600

Hope your help.

july2993 commented 5 years ago

seems there's lag at that time near 15:10, may meet high throughput at that time at up stream or run a slow DDL? you can check Drainer Event and ddl at drainer dashboard for the speed it handled DDL and DML events at that time.

thuyenptr commented 5 years ago

Thank you so much.