-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[content-service] Refactor upload to GCS #9836
Conversation
|
c7f149c
to
c8c1a40
Compare
/hold |
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.
Took the liberty to push a commit which simplifies the content upload to GCloud further.
I'm not all that hopeful that this change will actually decrease memory use in practice, because of
If anything, the code that existed prior (albeit a ton more complicated) would give us some control over the amount of buffering we do.
That was on purpose :) |
but we are setting a value https://github.com/gitpod-io/gitpod/pull/9836/files#diff-c42db953f8fdf32db52a02ec07b01ac4193206a1fe63ffa86201a31dc7e83bd8R374 |
Ooops. Dropped that commit again. |
bd91014
to
4f5697d
Compare
We are indeed - good point. Max memory usage this should produce then is |
I cannot use more than 200MB after the refactoring (I even tried to upload 10GB) |
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.
🚀
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
@aledbf I bet you consider that, but: What's the trade-off in terms of upload speed? |
/werft run 👍 started the job as gitpod-build-aledbf-gcs-upload.18 |
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.
Code changes LGTM, did not test. 👍
Description
Remove creation of chunks and CRC from the upload of backups. This is one the sources of CPU/RAM utilization in ws-daemon
How to test
or use docker
Release Notes