Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions docs/admin/scale/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,16 @@ For example, this command will do the following:
- establish a SSH connection to each workspace
- run `sleep 3 && echo hello` on each workspace via the web terminal
- close connections, attempt to delete all workspaces
- return results (e.g. `99 succeeded, 1 failed to connect` )
- return results (e.g. `99 succeeded, 1 failed to connect`)

```sh
coder loadtest create-workspaces \
coder scaletest create-workspaces \
--count 100 \
--template "my-custom-template" \
--parameter image="my-custom-image" \
--run-command "sleep 3 && echo hello" \
--connect-timeout "10s"
--run-command "sleep 3 && echo hello"

# Run `coder scaletest --help` for all usage
# Run `coder scaletest create-workspaces --help` for all usage
```

> To avoid user outages and orphaned resources, we recommend running scale tests on a secondary "staging" environment.
Expand Down