-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
restore: point in time recovery #16161
Comments
@filbustenet While @danhhz can probably give you a more detailed answer (probably after the weekend), the short answer is that our mvcc storage model keeps timestamped revisions of every write (for a default of 24h), so a near instantaneous rollback to a previous state within that window is theoretically easy to add, and is on our near-term roadmap. Beyond that 24h GC window, those historical revisions have been pruned from the running DB, and thus a restore from a backup is required -- a policy of frequent, small incremental backups would ensure the most flexibility there. |
@dt is exactly right here. The only thing I have to add is that this is currently targeted for the 1.1 release |
Point in time recovery is getting pushed to 1.2 due to engineering constraints. |
@flibustenet Thanks for the feature request. We are actively working on spec-ing out this feature. You can follow our progress through RFCs. It would be great if you could share with us your specific requirements - what is your expected recovery time for a given set of data? How large do you expect that data set to be? How often do you use point-in-time recovery? |
Acceptance Testing
|
@dianasaur323 can you close this if the above checklist is good? |
yes, can do! I'm just going to run the states one last time after the fixes went in, and then close out. Probably will do so early next week. |
Results of my actual testing:
Results
Onto point-in-time restore
Note: it's becoming clear to me that we need some way to see the revision history of a row, and perhaps also be able to see the revision history of table descriptors. Otherwise, I'm manually writing these times down, and what happens if I didn't? Also, how do I figure out what time periods the backup covers? Is there a way to query this? Overall, everything looks good. Opening that one final issue about the error message here: #23715 |
Point in time recovery is a blocker for me. Will it be possible in the architecture of cockroach ?
I couldn't find any documentation about it, i think it will be nice to include it in the comparison table.
The text was updated successfully, but these errors were encountered: