-
Notifications
You must be signed in to change notification settings - Fork 206
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
rafs: prefetch based on blob chunks rather than files #887
rafs: prefetch based on blob chunks rather than files #887
Conversation
bf02dcc
to
d36029a
Compare
2a9ad1b
to
ba58a7d
Compare
ba58a7d
to
08eb400
Compare
} else { | ||
Ok(false) | ||
} | ||
} else { |
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.
md_v6.rs
should only contains code for v6, so is this branch redundant?
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.
Seems like it's used for both v5 and v6, so it would be better to move into a common source file.
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.
Yes. Could we do the code movement on the master branch as I am planning to commit these changes to the master in the future?
Perform different policy for v5 format and v6 format as rafs v6's blobs are capable to to download chunks and decompress them all by themselves. For rafs v6, directly perform chunk based full prefetch to reduce requests to container registry and P2P cluster. Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
08eb400
to
9b0a538
Compare
Please also open a PR for master? It should also improve master branch:) |
/retest |
Sure. :-) Will raise another PR to master branch |
@yqleng1987 , The CI test is completed, please check result:
Congratulations, your test job passed! |
Perform different policy for v5 format and v6 format as rafs v6's blobs are capable to download chunks and decompress them all by themselves. For rafs v6, directly perform chunk based full prefetch to reduce requests to container registry and P2P cluster.
From benchmark test results, we can see that this PR has the same performance as the master code with significantly decreased registry requests (440->219)
--- master code
--- current v2.1
--- This PR optimized
Signed-off-by: Changwei Ge gechangwei@bytedance.com