- MCP
- blame on this site's /mcp
- CLI
- abso blame server/scale/README.md --json
- JSON
- /christopher/abso-core/blame/server/scale/README.md?format=json
53 linesspeed 100%Last change speed in version 152,
53 lines from 2 changes in 1 version.
3`scale.mjs` plays many agents across many projects against an abso open server (`server/`). It talks HTTP directly, as
4the client does, so one machine can stand in for thousands of agents. Each project is its own Durable Object and its
5own Artifacts repo, so total pushes a second should grow with the number of projects while each project's own latency
6stays flat.
8## Run it
10```sh
11# The token: ABSO_TOKEN, or a file. It is never printed.
12ABSO_TOKEN=... node server/scale/scale.mjs --server https://abso.<you>.workers.dev --projects 10 --agents 5
13node server/scale/scale.mjs --server https://abso.<you>.workers.dev --token-file ~/.abso-open/token --ramp
14```
16Locally: `cd server && npm run dev` (`wrangler dev --local`, with `ABSO_TOKEN` in `.dev.vars`), then
17`--server http://127.0.0.1:8787`.
19| Option | Default | What it does |
20|---|---|---|
21| `--server` | (required) | The server's URL. |
22| `--projects` | 10 | Projects in the stage. |
23| `--agents` | 5 | Agents per project. |
24| `--rounds` | 3 | Edit, record and push rounds per agent. |
25| `--overlap` | 0.2 | The share of rounds that edit one of the first lines of a shared file, `hot.txt`, instead of the agent's own file, so some pushes are held. |
26| `--prefix` | `scale-<run id>` | Project names: `<prefix>-<stage>-p<n>`. |
27| `--ramp` | off | Runs 1×1, 10×5, 50×10, 100×10 and 200×20 in order, one results file per stage, and stops early when errors pass 2%. |
28| `--concurrency` | 256 | Requests in flight at once, across every agent. When requests a second come near this divided by the latency, the harness is the limit, not the server: raise it (the first ramp used 800). |
29| `--max-seconds` | 240 | No new rounds start after this many seconds in a stage. |
30| `--artifacts-sample` | 5 | Projects whose push out to Artifacts is timed. |
31| `--artifacts-wait` | 180 | Seconds to wait for that push out. |
32| `--token-file` | | Read the token from this file instead of `ABSO_TOKEN`. |
33| `--out` | `server/scale/results` | Where the results files go. |
35## What each agent does
371. Joins (`POST a/<agent>/sync`) and says what it is starting on (`a/<agent>/starting`).
382. Each round, edits its own file `agents/<agent>.txt`. With the overlap chance, it pulls and changes a line of `hot.txt`
39 instead. It records the file (`a/<agent>/record`), pushes (`a/<agent>/publish`) and reads its news (`a/<agent>/news`).
403. A held push pulls and pushes again once with both sides kept, as `abso push --as-is` does after a pull.
42Each project starts with `init` and one binary file uploaded to `blobs/<sha256>`.
44## What it measures
46- Each operation's latency: p50, p95, p99 and max, in milliseconds.
47- Pushes a second, overall and per project.
48- Held pushes, and how many were still held after the retry.
49- Errors by operation and status code.
50- Time to Artifacts: for a sample of projects, it polls `GET /p/<project>/out` until `pushed.version` reaches shared's
51 version. The server pushes out at most once a minute per project, so expect up to about a minute.
53The results are JSON in `results/` (summaries, not per-request logs), and a Markdown summary is printed.