chadtmiller.com/monolith
An atproto PDS
0
0
The soak's at-rest run on 08a1db4: 1.08 times its live state settled
bench/soak/data/at-rest-08a1db4/events-monolith.jsonl.gznew+0−0
A binary file, not shown.
bench/soak/data/at-rest-08a1db4/events-reference.jsonl.gznew+0−0
A binary file, not shown.
bench/soak/data/at-rest-08a1db4/summary-monolith.jsonnew+44−0
| @@ -0,0 +1,44 @@ | ||
{ | ||
"side": "monolith", | ||
"updated": "2026-11-14T04:44:36.965Z", | ||
"started": "2026-11-14T04:34:29.651Z", | ||
"accounts": 20, | ||
"records": 3337, | ||
"lastSeq": 3409, | ||
"totals": { | ||
"ops": 6209, | ||
"ok": 6209, | ||
"e5xx": 0, | ||
"e4xx": 0, | ||
"limited": 0, | ||
"down": 0, | ||
"mismatches": 0, | ||
"lost": 0, | ||
"found": 0, | ||
"seqJumps": 0, | ||
"missingCommits": 0, | ||
"outages": 0, | ||
"outageMs": 0, | ||
"verifies": 9 | ||
}, | ||
"lastWindow": { | ||
"from": "2026-11-14T04:44:36.959Z", | ||
"to": "2026-11-14T04:44:36.964Z", | ||
"ops": { | ||
"getRecord": { | ||
"n": 1, | ||
"p50": 20, | ||
"p99": 20, | ||
"outcomes": { | ||
"ok": 1 | ||
} | ||
} | ||
}, | ||
"firehose": { | ||
"events": 0, | ||
"lagP50": null, | ||
"lagP99": null | ||
}, | ||
"lastSeq": 3409 | ||
} | ||
} | ||
| \ No newline at end of file | ||
bench/soak/data/at-rest-08a1db4/summary-reference.jsonnew+44−0
| @@ -0,0 +1,44 @@ | ||
{ | ||
"side": "reference", | ||
"updated": "2026-11-14T04:44:39.292Z", | ||
"started": "2026-11-14T04:34:30.063Z", | ||
"accounts": 20, | ||
"records": 3287, | ||
"lastSeq": 3401, | ||
"totals": { | ||
"ops": 6186, | ||
"ok": 6186, | ||
"e5xx": 0, | ||
"e4xx": 0, | ||
"limited": 0, | ||
"down": 0, | ||
"mismatches": 0, | ||
"lost": 0, | ||
"found": 0, | ||
"seqJumps": 0, | ||
"missingCommits": 0, | ||
"outages": 0, | ||
"outageMs": 0, | ||
"verifies": 9 | ||
}, | ||
"lastWindow": { | ||
"from": "2026-11-14T04:44:39.269Z", | ||
"to": "2026-11-14T04:44:39.292Z", | ||
"ops": { | ||
"delete": { | ||
"n": 1, | ||
"p50": 37.3, | ||
"p99": 37.3, | ||
"outcomes": { | ||
"ok": 1 | ||
} | ||
} | ||
}, | ||
"firehose": { | ||
"events": 0, | ||
"lagP50": null, | ||
"lagP99": null | ||
}, | ||
"lastSeq": 3401 | ||
} | ||
} | ||
| \ No newline at end of file | ||
bench/soak/RESULTS.md+63−2
| @@ -20,8 +20,9 @@ server's own from its log. | ||
the soak's own, from before it knew that a follow or like replaces the | ||
account's others of the same subject ("nine hours"). | ||
- At rest Monolith holds its live state, 1.08 times it; the reference five | ||
times it ("under load and at rest"). Under a day's window and hours of | ||
writes Monolith held about twice the reference's ("nine hours"). | ||
times it ("under load and at rest"), and again on `08a1db4`, 1.08 against | ||
4.66 ("under load and at rest, on 08a1db4"). Under a day's window and | ||
hours of writes Monolith held about twice the reference's ("nine hours"). | ||
- On the network volume a slow sync held up every write under way, with | ||
Monolith's slow syncs and slow writes following the volume's flush time | ||
(r 0.91 and 0.90); on the server's own disk neither did, and | ||
| @@ -474,3 +475,63 @@ Each window has its own p50 and p99 per operation; the median of them, and the w | ||
| at rest, after a write to each | 37.5 MiB, 4.17 × live | 9.7 MiB, 1.08 × live | | ||
| the settled bound | 34.3 MiB: over | 34.3 MiB: within | | ||
| ||
## 2026-11-14: under load and at rest, on 08a1db4 | ||
| ||
The run of "under load and at rest" again, as `run.sh at-rest` in the | ||
deployment's repository makes it: both fresh, each its data on the server's | ||
own disk, a backfill window `W` of 2 minutes and the rate limits off; 20 | ||
accounts and 10 operations a second on each for 10 minutes, seed 7; then the | ||
settled check. Monolith `08a1db4`, the image deployed on the machine, which | ||
has `3218378` and its log capped at 4 MiB; the server was not started again | ||
between the load and the check. | ||
| ||
```sh | ||
node bench/soak/analyze.mjs bench/soak/data/at-rest-08a1db4 | ||
``` | ||
| ||
### Totals (summary-*.json) | ||
| ||
| | monolith | reference | | ||
| --- | --: | --: | | ||
| from, to | 04:34–04:44 | 04:34–04:44 | | ||
| accounts, records | 20, 3,337 | 20, 3,287 | | ||
| operations | 6,209 | 6,186 | | ||
| 5xx | 0 | 0 | | ||
| rate limited (429) | 0 | 0 | | ||
| lost | 0 | 0 | | ||
| mismatches | 0 | 0 | | ||
| commits not on the firehose | 0 | 0 | | ||
| outages, their time | 0, 0.0 s | 0, 0.0 s | | ||
| ||
### The soak's times, by five-minute window (events-*.jsonl) | ||
| ||
Each window has its own p50 and p99 per operation; the median of them, and the worst p99. Times are the soak's, from request to answer. | ||
| ||
| operation | monolith p50 | monolith p99 | monolith worst p99 | reference p50 | reference p99 | reference worst p99 | | ||
| --- | --: | --: | --: | --: | --: | --: | | ||
| post | 6.0 | 12.6 | 12.6 | 33.1 | 51.3 | 51.3 | | ||
| like | 6.2 | 11.5 | 11.5 | 33.9 | 64.8 | 64.8 | | ||
| applyWrites | 7.4 | 15.3 | 15.3 | 43.8 | 110.8 | 110.8 | | ||
| delete | 6.0 | 11.4 | 11.4 | 34.2 | 85.0 | 101.9 | | ||
| getRecord | 2.4 | 6.6 | 20.0 | 12.3 | 35.1 | 35.1 | | ||
| listRecords | 2.9 | 6.6 | 6.6 | 15.1 | 39.2 | 39.2 | | ||
| getLatestCommit | 2.2 | 5.1 | 5.1 | 11.7 | 22.7 | 22.7 | | ||
| getRepo | 4.3 | 14.3 | 14.3 | 27.0 | 168.0 | 168.0 | | ||
| ||
#### Events by kind | ||
| ||
| kind | monolith | reference | | ||
| --- | --: | --: | | ||
| ready | 1 | 1 | | ||
| settled | 1 | 1 | | ||
| settling | 1 | 1 | | ||
| ||
#### The settled check | ||
| ||
| | monolith, 04:48 | reference, 04:48 | | ||
| --- | --: | --: | | ||
| live state: repositories + blobs | 7.1 MiB (1 + 6.1) | 7.4 MiB (1 + 6.3) | | ||
| when the load stopped | 25.1 MiB | 34.5 MiB | | ||
| after 2 W with no write | 16.4 MiB | 34.5 MiB | | ||
| at rest, after a write to each | 7.7 MiB, 1.08 × live | 34.5 MiB, 4.66 × live | | ||
| the settled bound | 24.9 MiB: within | 25.6 MiB: over | | ||