-
-
Notifications
You must be signed in to change notification settings - Fork 98
Add a rebuild
command plugin
#2321
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
Conversation
d46d831
to
069b24a
Compare
The new plugin rebuilds the whole database by running an `identity` transformation on the database, causing all partitions to be rebuilt entirely. This conveniently merges partitions up to the configured `max-partition-size`, upgrades to the most recent table slice encoding, and migrates all data to the currently configured store backend. Co-authored-by: Győző Gáspár <gyozo.gaspar@tenzir.com>
730040f
to
99e9b06
Compare
Co-authored-by: Győző Gáspár <gyozo.gaspar@tenzir.com>
Co-authored-by: Győző Gáspár <gyozo.gaspar@tenzir.com>
Co-authored-by: Győző Gáspár <gyozo.gaspar@tenzir.com>
Co-authored-by: Győző Gáspár <gyozo.gaspar@tenzir.com>
Co-authored-by: Győző Gáspár <gyozo.gaspar@tenzir.com>
Co-authored-by: Győző Gáspár <gyozo.gaspar@tenzir.com>
Co-authored-by: Győző Gáspár <gyozo.gaspar@tenzir.com>
4c4bbb0
to
a905a4f
Compare
Co-authored-by: Győző Gáspár <gyozo.gaspar@tenzir.com>
a905a4f
to
d37ad0b
Compare
d7bcfa9
to
9acd287
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me in general, and we already tested it on the testbed so we also know that it actually works.
Add a Nix package for the indicators library
4534d33
to
2cc7f54
Compare
2cc7f54
to
c851294
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only reviewed Return a partition info from the catalog result" so far.
Otherwise version - 1 overflows, which has undesirable side effects for rebuilding.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We did the final review on the rebuilding algorithm in a call. Feedback is already integrated.
The new plugin rebuilds the whole database by running an
identity
transformation on the database, causing all partitions to be rebuilt entirely. This conveniently merges partitions up to the configuredmax-partition-size
, upgrades to the most recent table slice encoding, and migrates all data to the currently configured store backend.📝 Checklist
🎯 Review Instructions
Test it out locally. The testing of the individual pieces is already covered, and integration testing is impossible until we have a
flush
command (next Hackathon?).For the code I recommend just reading the whole diff at once.
For stress-testing, I recommend running VAST with a low
vast.active-partition-timeout
, ingesting a bunch of data, and then looking at the results of rebuilding.