-
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
Opening workspace takes a very long time, when prebuild generate big artifacts #7002
Comments
I added 2 more examples, of slow workspace opening, using https://github.com/shaal/gitpod-default-image-speed-test/tree/5gb-dummy-file-with-workspace-base |
@shaal we still need to transfer the additional 5Gb to the node from the container registry. Keep in mind that the nodes in the cluster rotate periodically (download the image again), and also, you can open the same repository and land in two different nodes. That said, we are actively working on improving the build process, layers, caching, and distribution to improve scenarios like the one you are presenting. |
I'm having the same issue, with the exception that my time differences are on a workspace that is simply opened, stopped and reopened. Using the workspace-full image and a prebuild Times vary from 45s to over 2:30 for the same workspace with no changes |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Please add never-stale label to this issue |
Once this epic is done and shipped, it should greatly improve start up times of workspaces that contain big artifacts. |
We are actively working to mitigate this issue with epic #9018 — by increasing the chances the image is cached and lazy pulling the image layers. And, as @sagor999 mentioned, epic #7901 should also contribute to improve the situation. Given we are actively working on both epics that will fix this, I would suggest to close this issue and follow up the epics directly. Feel free to reopen if you don't agree or have further concerns 🙌 |
Bug description
A workspace with optimized custom docker image (340MB with 1 layer), opens quickly, in about 5 seconds.
That same workspace, takes a very long time to open (over a minute), if the prebuild generated big artifacts.
Steps to reproduce
Choose a repo, open it in Gitpod and measure how long it takes to load.
Add
init
start task in.gitpod.yml
, that creates a large file (ie. 5gb) during prebuild.When prebuild finished, open the workspace and measure how long it takes to load.
Workspace affected
No response
Expected behavior
Example repository
I created a very simple example to replicate the issue I am seeing.
Compare opening in Gitpod
main
branch of this repo, andPR #1
Only 5 seconds - https://github.com/shaal/gitpod-image-speed-test
Over 1 minute - shaal/gitpod-image-speed-test#1
Both
main
and the PR use 340MB custom Docker image with 1 layer.The only difference between the 2?
Anything else?
I demoed this issue during today's Gitpod Office Hours.
cc: @rfay @mikenikles @mrsimonemms @jldec
The text was updated successfully, but these errors were encountered: