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 130 forks source link

Kafka Checkpoint #738

Closed thuyenptr closed 4 years ago

thuyenptr commented 5 years ago

Hi,

I have a question about the checkpoint Why you don't persist checkpoint in a Topic in Kafka instead of saving checkpoint in a file (local checkpoint) (code here) I think we can lose checkpoint if drainer die.

Thank you.

july2993 commented 5 years ago

yes, if lost the checkpoint file, we lost the checkpoint. I think maybe we can just consume the latest msg the fetch the checkpoint.

thuyenptr commented 5 years ago

Yeah, I think we should save the checkpoint in Kafka instead of saving in a file. Can I make PullRequest for this? Btw, I am implementing raft protocol for pump instance in pump cluster, can you give me some advice?

july2993 commented 5 years ago
thuyenptr commented 5 years ago
july2993 commented 5 years ago
thuyenptr commented 5 years ago

Thank you, I will try to separate the storage layer and processing layer in pump instance first, then make availability storage