mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(cli): add trafficgen command for load testing (#7307)
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.
This commit is contained in:
+5
-5
@@ -87,11 +87,13 @@ func (r *RootCmd) Core() []*clibase.Cmd {
|
||||
|
||||
// Workspace Commands
|
||||
r.configSSH(),
|
||||
r.rename(),
|
||||
r.ping(),
|
||||
r.create(),
|
||||
r.deleteWorkspace(),
|
||||
r.list(),
|
||||
r.parameters(),
|
||||
r.ping(),
|
||||
r.rename(),
|
||||
r.scaletest(),
|
||||
r.schedules(),
|
||||
r.show(),
|
||||
r.speedtest(),
|
||||
@@ -100,13 +102,11 @@ func (r *RootCmd) Core() []*clibase.Cmd {
|
||||
r.stop(),
|
||||
r.update(),
|
||||
r.restart(),
|
||||
r.parameters(),
|
||||
|
||||
// Hidden
|
||||
r.workspaceAgent(),
|
||||
r.scaletest(),
|
||||
r.gitssh(),
|
||||
r.vscodeSSH(),
|
||||
r.workspaceAgent(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user