Repository navigation
docs: add guidance for high-concurrency prebuilt workspace claims - #31991
Merged
Merged
Conversation
nickvigilante
marked this pull request as ready for review
November 10, 2026 23:05
nickvigilante
force-pushed
the
docs/prebuilds-high-concurrency-claims
branch
from
November 10, 2026 23:26
3a6c672 to
754d1bc
Compare
hwang251
approved these changes
Nov 12, 2026
Contributor
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Prepare for high-concurrency claims section to the prebuilt workspaces page. It covers what admins should do when many developers create workspaces from the same preset at once, such as a training session or onboarding day:
eligiblematchesdesired, and raiseCODER_PG_CONN_MAX_OPEN.instances; retry409 Conflictfrom API clients with jitter; watch the claim metrics.Also adds a short note to Template updates and the prebuilt workspace lifecycle: until the new version's prebuilds are eligible, new workspaces are built from scratch.
Verified against code
coderd/workspaces.go,ErrNoClaimablePrebuiltWorkspaces).409comes fromwsbuilder(http.StatusConflict, "A workspace build is already active.").CODER_PG_CONN_MAX_OPENdefault is10(server CLI reference).template_name,preset_name, andorganization_namelabels (enterprise/coderd/prebuilds/metricscollector.go).Needs engineering confirmation before merge
CODER_PG_CONN_MAX_OPENrange (field guidance was about 50 to 100 per replica; left out of the page until confirmed)Intentionally left out
Linear: DOCS-1729
Supersedes #31944, reopened under a human author for attribution.