Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit846d724

Browse files
committed
make lint/markdown
1 parent4b9bdfe commit846d724

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎docs/admin/templates/extending-templates/prebuilt-workspaces.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,20 +254,23 @@ It is possible for prebuilt workspaces to overwhelm a Coder deployment to the po
254254
If your Coder deployment is exhibiting the above symptoms, follow these instructions to verify and then rectify the situation:
255255

256256
First, run:
257+
257258
```bash
258259
coder prebuilds pause
259260
```
260261

261262
This prevents further pollution of your provisioner queues. Specifically, it will prevent the prebuilt workspaces feature from scheduling new prebuilt workspace creation jobs. Jobs that have already been enqueued will still be processed at this point. Regardless of the steps taken in the rest of your troubleshooting process, remember to run`coder prebuilds resume` once all impact has been mitigated. See the last step in this section for more information.
262263

263264
Next, run:
265+
264266
```bash
265267
coder provisionerjobs list --status=pending --initiator=prebuilds
266268
```
267269

268270
This will show a list of all pending jobs that have been enqueued by the prebuilt workspace system. The length of this list is an indicator of whether prebuilt workspaces have overwhelmed your Coder deployment. Human initiated jobs do have priority over pending prebuild jobs, but a prebuild job that is already running will not be preempted to process a human initiated job. An extended list of pending prebuild jobs therefore increases the likelihood that all provisioners may already be occopied when a human user would like to create a workspace. This then transitively increases the likelihood that users will experience delays waiting for the next available provisioner to become available when they try to manage their workspaces or templates.
269271

270272
To ensure that the next available provisioner will be given to a human initiated job, run:
273+
271274
```bash
272275
coder provisionerjobs list --status=pending --initiator=prebuilds| jq'...'| xargs -n1 -P2 -I{} coder provisionerjobs cancel {}
273276
```
@@ -277,13 +280,15 @@ This will clear the provisioner queue of all jobs that were not initiated by a h
277280
At this stage, most prebuild related impact will have been mitigated. There may still be a bugged template version, but it will no longer pollute provisioner queues with prebuilt workspace jobs. If the latest version of a template is also broken for reasons unrelated to prebuilds, then users are able to create workspaces using a previous template version. Some running jobs may have been initiated by the prebuild system, but these cannot be cancelled without potentially orphaning resources that have already been deployed by Terraform. Depending on your deployment and template provisioning times, it might be best to upload a new template version and wait for it to be processed organically.
278281

279282
If you need to expedite the processing of human-related jobs at the cost of some infrastructure house-keeping, then you can run:
283+
280284
```bash
281285
coder provisionerjobs list --status=running --initiator=prebuilds| jq'...'| xargs -n1 -P2 -I{} coder provisionerjobs cancel {}
282286
```
283287

284288
This will cancel running prebuild jobs (orphaning any resources that have already been deployed) and immediately make room for human-initiated jobs.
285289

286290
Once the provisioner queue has been cleared and all templates have been fixed, remember to resume prebuild reconciliation by running:
291+
287292
```bash
288293
coder prebuilds resume
289294
```

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp