-
Notifications
You must be signed in to change notification settings - Fork 886
docs: upcoming auto-stop behavior #8117
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,14 +69,37 @@ coder templates create <template-name> | |
> [examples/](https://github.com/coder/coder/tree/main/examples/templates) | ||
> directory in the repo. | ||
|
||
## Configure Max Workspace Autostop | ||
## Template policies (enterprise) | ||
|
||
To control cost, specify a maximum time to live flag for a template in hours or | ||
minutes. | ||
By default, developers have unlimited workspace usage and can use any template version. Template policies allows you to: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't a developer use only the active version of a template? Only admins can create workspaces from any version. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We plan on making the behavior configurable per-template. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But restricting users to only use the active template is a good double-check if we do something like this |
||
|
||
```sh | ||
coder templates create my-template --default-ttl 4h | ||
``` | ||
- Auto-stop workspaces after 3 hours of inactivity. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: these clauses shouldn't end with periods since they're not complete sentences |
||
- Require workspaces to be restarted frequently to ensure they use the most recent template version. | ||
- Disable workspace auto-start. | ||
|
||
### Stop policy | ||
|
||
Stop policies require workspaces be stopped (or restarted), regardless of activity: | ||
|
||
- Daily (Restart on next quiet hours) | ||
- Weekly (Restart on weekends) | ||
- Custom (Every 2 weeks) | ||
bpmct marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
```text | ||
Every [2] [Weeks] on [Friday] | ||
or | ||
Every [2] [Days] | ||
or | ||
Every [4] [Weeks] on [Saturday] | ||
``` | ||
|
||
- Never | ||
|
||
Stops occur during a user's [quiet hours](../workspaces.md#quiet-hours), which prevent interruptions. If a user is still using their workspace, they can postpone a restart up to 3 hours. | ||
bpmct marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Learn more about [workspace auto-stop](../workspaces.md#workspace-auto-stop) | ||
|
||
<!-- TODO: Add the dashboard screenshots. We can remove the "most recent version" bullet point once we finish template version policies --> | ||
|
||
## Customize templates | ||
|
||
|
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.
Should add something about how developers have full control of their workspace schedules without policy. The policy is just the enforcement layer. It reads to me like the community edition doesn't have scheduling at all.
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.
Yeah, I agree. I will rephrase