-
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
Fix concurrent workspace limit #9491
Conversation
c00f147
to
28617ff
Compare
hey, can you please rebase your branch before you continue working with your preview env? The old base contains a ws-daemon that logs expensively. To save costs, I'll manually remove the old preview env of this branch. Apologies for the inconvenience. |
65b97b8
to
40b7068
Compare
/werft run 👍 started the job as gitpod-build-af-fix-concurrent-workspace-limit.3 |
927fcd1
to
9463f6f
Compare
@andrew-farries @geropl how do we move forward with this? (post-rebase that is :) ) |
I'm struggling to test this (and the branch on which it's based - #9453) because image builds aren't working for me in preview environments. It needs a a run to check that we haven't broken anything in the transition between workspace phases with the addition of the new 'building' phase. |
9463f6f
to
1ddc7cc
Compare
1ddc7cc
to
3150c52
Compare
40b7068
to
06d742c
Compare
/werft run with-vm=true 👍 started the job as gitpod-build-af-fix-concurrent-workspace-limit.5 |
@csweichel The first PR of the series (the types and backwards-compatible handling) is merged: #9453 Before moving forward with this PR we now have to make sure all clients handle the new "phase". |
06d742c
to
2fdd520
Compare
rebased to resolve merge conflicts and taking this out of 'draft'. |
@andrew-farries Moving back to draft because we have to clarify with @gitpod-io/engineering-ide what they have to do before we can merge this one. 👍 |
@@ -33,6 +33,7 @@ export interface Configuration { | |||
timeouts: { | |||
metaInstanceCheckIntervalSeconds: number; | |||
preparingPhaseSeconds: number; | |||
buildingPhaseSeconds: number; |
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.
how do we distribute config changes? do we need to have default values for compatibility?
what's the plan for self-hosted?
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.
@andrew-farries, I believe this needs to be reflected in configmap.go, like the other timeouts.
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.
Done in a0e4ea7
I'm testing now... |
99fa3f1
to
6ce07a3
Compare
Rather than "unknown".
When calculating the workspace limit.
eaa9cba
to
472adc0
Compare
472adc0
to
e23e74d
Compare
This was previously in the `default` group.
e23e74d
to
4e84e94
Compare
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!
Thanks for checking and testing all of the hidden gems!
There is one comment on a new config entry to consider.
/hold
/unhold |
Description
Change the initial phase of a workspace from
unknown
topreparing
to avoid filtering them out when calculating a user's concurrent workspace limit.Builds on #9453 to allow us to distinguish between workspaces waiting for an image build and workspaces that may not need one.
Related Issue(s)
Fixes #9410
How to test
Smoke test various IDEs:
Release Notes
Documentation
None