From the plan: <h3>Goal:</h3> <ul> <li>To observe how Coder handles Task usage at scale.</li> </ul> User target | Tasks | Regions | coderd replicas | Provisioners | Task update frequency -- | -- | -- | -- | -- | -- 1k | 400 | 3 | 3 | 60 | 6/minute 2k | 800 | 3 | 3 | 120 | 6/minute 3k | 1200 | 3 | 4 | 180 | 6/minute 10k | 4000 | 3 | 10 | 600 | 6/minute <h3>Infrastructure:</h3> <ul> <li>Kubernetes cluster per region, each cluster has: <ul> <li>1/3 of total workspaces.</li> <li>1/3 of total provisioners.</li> <li>1 workspace proxy in secondary regions (those w/o the coder deployment).</li> </ul> </li> </ul> <h3>Implementation:</h3> <ul> <li>Tools: <ul> <li><code>scaletest create-workspaces</code></li> <li>Custom tool to create fake AI agents in each workspace (i.e. <code>scaletest fake-ai</code> ). <ul> <li>These fake AI agents should make tool calls to the Coder MCP server running in the workspace, which then talk to <code>coderd</code> .</li> </ul> </li> </ul> </li> <li>Build concurrency equal to provisioners, to minimize build load.</li> </ul> <h3><strong>Run Sequence:</strong></h3> <ol> <li>Create users.</li> <li>Create workspaces with a Coder MCP server, and a fake AI agent.</li> <li>Have each user client connect to the <code>/api/v2/workspaces/{workspace}/watch-ws</code> endpoint, and listen for status updates.</li> <li>Establish baseline (10 minutes)</li> <li>Have fake AI agents report app status updates every 10 seconds.</li> <li>Run for 10-15 minutes.</li> </ol> <h3><strong>Key Results:</strong></h3> <ul> <li>Latency from app status update to update receipt by client.</li> <li>DB utilization/load during update fan out.</li> <li>If any status updates were missed altogether.</li> </ul> <h3>Other Results:</h3> <ul> <li>Coder deployment + database resource utilization (incl. pprofs, Grafana Pyroscope).</li> </ul> <!-- notionvc: b5d0ea65-0c01-4224-bba0-c6c72b3ad151 -->
Activity
spikecurtis commentedon Oct 28, 2025
Note to self: https://github.com/coder/coder/pull/20426/files gives a description of how to set up terraform for AI tasks.
chore: refactor flags that target workspaces in scaletest (#20537)
feat: add task status reporting load generator runner (#20538)