-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
upload boltdb files from shipper only when they are not expected to be modified or during shutdown #2487
upload boltdb files from shipper only when they are not expected to be modified or during shutdown #2487
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2487 +/- ##
==========================================
- Coverage 63.67% 63.52% -0.16%
==========================================
Files 163 163
Lines 14325 14334 +9
==========================================
- Hits 9122 9106 -16
- Misses 4488 4513 +25
Partials 715 715
|
I have one remaining question, if an ingester has been unable to upload tables say because of a network problem and is restarted, I think that means any tables other than the most recent will never be uploaded? |
They would be uploaded because we don't keep a track of which files were uploaded and which weren't so when upload process kicks in it would re-upload everything again. |
Ok, this seems ok to me for now, we are only re-uploading completed files which won't be modified again, we are still maintaining our rule of never modfiying a file once uploaded |
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.
LGTM!
542fc2b
to
993f5b6
Compare
What this PR does / why we need it:
We want to avoid modifying files once they are uploaded to the store by
boltdb-shipper
.This PR takes care of it by avoiding uploading active shard or shard which was active up to a minute back.
It also avoids modifying files created and uploaded by previous restart by considering init time of the Table.
This PR would help build a compactor easily which is much needed since an ingester is now creating
96
files per day which is slowing down the queries.Checklist