You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
BR only supports full backup & restore for now, in this project we require to support incremental backup & restore, this is related to BR and TiKV.
Problem Statement
Currently, the procedure of backup is:
BR gets a TSO(called BackupTS) from PD
BR distributes tasks to TiKVs
TiKV scans data with BackupTS, generates SSTs, store them to external storage
And the procedure of restore is:
BR resets the TSO of PD with BackupTS(this will be a NOOP, if BackupTS <= current TSO of PD)
BR creates the databases and tables, gets the new table schema, constructs key rewrite rules(for rewrite the table id and index id in the keys) with them
BR distributes DownloadSST tasks to TiKVs
TiKV downloads the given files, rewrites the keys, and save the result file
BR distributes IngestSST tasks to TiKVs
Several problems are raised as we support incremental backup & restore:
All the data should be scan during the incremental backup is in (last BackupTS, current BackupTS]. Then for more efficient incremental backup , we need a way to skip the unnecessary data.
In full restore, There is no old data in the cluster. But in incremental restore, sometimes we need to restore data to a table which already has some records, and they should be covered by the restored data. So we must rewrite the restored data with the TSO from the new cluster, rather reset the TSO with the BackpTS.
Success Criteria
At least support the basic function of incremental backup & restore.
Incremental Backup & Restore
Abstract
BR only supports full backup & restore for now, in this project we require to support incremental backup & restore, this is related to BR and TiKV.
Problem Statement
Currently, the procedure of backup is:
And the procedure of restore is:
Several problems are raised as we support incremental backup & restore:
Success Criteria
At least support the basic function of incremental backup & restore.
TODO list
DeltaScanner
(500 points / medium)Score
2700
Mentor(s)
Recommended skills
The text was updated successfully, but these errors were encountered: