mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
This PR adds a scaletest workspace-traffic command for load testing. This opens a ReconnectingPTY connection to each scaletest workspace (via coderd) and concurrently writes and reads random data to/from the PTY. Payloads are of the form #${RANDOM_ALPHANUMERIC_STRING}, which essentially drops garbage comments in the remote shell, and should not result in any commands being executed.
666 B
666 B
Usage: coder scaletest
Run a scale test against the Coder API
Subcommands
cleanup Cleanup scaletest workspaces, then cleanup scaletest
users.
create-workspaces Creates many users, then creates a workspace for each
user and waits for them finish building and fully come
online. Optionally runs a command inside each
workspace, and connects to the workspace over
WireGuard.
workspace-traffic Generate traffic to scaletest workspaces through coderd
---
Run `coder --help` for a list of global options.
Run a scale test against the Coder API
Subcommands
cleanup Cleanup scaletest workspaces, then cleanup scaletest
users.
create-workspaces Creates many users, then creates a workspace for each
user and waits for them finish building and fully come
online. Optionally runs a command inside each
workspace, and connects to the workspace over
WireGuard.
workspace-traffic Generate traffic to scaletest workspaces through coderd
---
Run `coder --help` for a list of global options.