-
Notifications
You must be signed in to change notification settings - Fork 25
Description
Feature Request
Is your feature request related to a problem? Please describe:
TiKV-BR is designed to initialize data before the incremental data replication of TiKV-CDC. Refer to RawKV Cross Cluster Replication (tikv/rfcs#86).
To cooperate with TiKV-CDC, the procedure is expected to be:
- TiKV-BR backup from upstream TiKV
1.1 Get a latest TSO (supposed to beT0).
1.2 Set BR service safepoint toT0and TTL as 72 hours (configurable).
1.3 Invoke backup procedure to TiKV, flushcausal_tsat the beginning to make sure that timestamp of following writes must be greater thanT0.
1.4 Return theT0after backup finished. - TiKV-BR restore to downstream TiKV (It would be nice the store
T0in backup meta to remind the users agin after restore). - TiKV-CDC create changefeed between upstream & downstream with
--start-ts T0.
Update 2022.6.29
Set T0 as TSO - safe-interval. Where safe-interval is a configurable duration defaults to 1 minute.
safe-interval is a work around to avoid missing some RawKV writes just in Raft procedure during backup, and assume that all Raw writes should be finished in 1 minute.
The cons of safe-interval is that some entries would be backup or replicated redundantly.
On a system with heavy load, the safe-interval should be configured longer.
The safe-interval would be deprecated after the read-ts of RawKV is implemented. Refer to tikv/rfcs#96.
Describe the feature you'd like:
1.1 ~ 1.4 in above description.
Describe alternatives you've considered:
Teachability, Documentation, Adoption, Migration Strategy: