-
Notifications
You must be signed in to change notification settings - Fork 135
perf(pegboard): parallelize writing configs under setup_oci_bundle #2289
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
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
a2bf5a8 to
79ca91f
Compare
98c0b60 to
c6910d5
Compare
c6910d5 to
096ea4c
Compare
79ca91f to
6685e2d
Compare
096ea4c to
c6910d5
Compare
Merge activity
|
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.
PR Summary
This PR optimizes the OCI bundle setup by parallelizing file writes in setup_oci_bundle using tokio::try_join!, replacing sequential writes and aiming for improved performance.
• In packages/edge/infra/client/manager/src/actor/setup.rs, config.json, resolv.conf, and hosts are written concurrently.
• All file contents are fully prepared before the concurrent writes, ensuring independent operations.
• Error propagation via try_join! maintains atomic behavior if any write fails.
• Confirm that the overall atomicity is acceptable in failure scenarios.
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
…2289) <!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->

Changes