-
Notifications
You must be signed in to change notification settings - Fork 72
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
booster-http: disable on-the-fly indexing by default #646
Conversation
What's the consequence of having this disabled? I get the resource savings here by having it off, but if this is disabled that risks a failed retrieval, correct? If that's the case I think we should default to "make it work out of the box", and then document and allow tuning for performance via params, noting the trade off of shutting certain things off. |
A piece is stored in a sector. In order to retrieve a CAR file from a sector, we need to know
We figure out where the end of the file CAR file is by
Indexing-on-the-fly is when
In practice this process is relatively expensive, because booster-http needs to retrieve the entire piece and index it. If there are lots of retrieval requests booster-http will do this repeatedly. So I think it makes sense to disable this functionality by default. When the client makes a request for a CAR file in a piece that has not been indexed, the SP should notice errors in their logs and manually run commands to index the piece. |
I'm assuming the manual intervention that's needed here is if indexing fails, is that correct? If it's processing and will eventually succeed I think that's fine. I'd like to understand what the manual intervention pieces of this look like so that we can try and make that more prevalent to SP's, or better yet, automatic. |
Yes the manual intervention is to fix indexing if it fails 👍 The actual steps depend on exactly went wrong. It could be that the sealing node was down when indexing was attempted, a corrupted datastore, a corrupted CAR file, etc. I think we should address those as part of the boost doctor work. |
yeah, that seems reasonable to focus that on showcasing with the doctor effort. |
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.
✔️
No description provided.