Where the bottleneck is
A forge admin sees in one sentence what limits the forge now, then one row each for the internet
connection, CPU, checks, crew, memory and disk: the reading, its ceiling, and the setting that moves
it. Two doors, one reading (readBottleneck):
- Page:
/system/bottleneck, linked from/system. - MCP: the
systemtool withkind: bottleneck; a non-admin getsforbidden. - The sentence names the row at 90% or more of its ceiling, the nearest first; else "Nothing is at its limit."
- The connection's ceiling is the megabits a second it carries out: start the forge with
FORGE_LINE_MBIT. Unset, the row says so and never takes the sentence. Loopback is not counted. Nothing in the forge moves this row, so it has no setting beside it. - CPU is the machine's busy share times its cores, against the forge's own core limit when it has one.
- Not measured here, and listed on the page rather than guessed: round trips to outside hosts, a page through the public address against loopback, bytes split by sender, and the host's traffic shaping.
- What the host is tuned to is declared, not measured, and not yet confirmed:
src/system/host_tuning.tsholds the traffic shaper (cake at 9 Mbit, four lanes, LAN unshaped) and the edge proxy's large-or-slow-response log and crawler lane. The figures were reconstructed from issue #14238; the page says "Not yet" under Checked against the host until the owner has compared them withtc qdisc showand the edge's nginx.conf and setconfirmedin that file. The marks that would put pages ahead of backups are not set by anything here, and the page does not claim a priority order.bun scripts/host-tune.ts --apply --dev <uplink>applies the shaper (run it again after a reboot);--edgeprints the proxy snippet to include. - Changes to how the forge runs are
docs/ops/operations.log, one line each (day | setting|host|incident | who | what | why; append one in the pull that makes the change), with the settings changed on /settings/capacity read from their events. The newest twelve show as dated rows on the page, in the terminal and in the MCPbottleneckreading (host:{label, value}rows,ops:{day, kind, who, what, why}); the morning paper says how many came since its last line. - In the terminal (admins, as the page): the palette's Where the bottleneck is shows the sentence,
a line a row, what the host is tuned to and the changes;
j/kscroll,greads again,escgoes back.
Code: src/system/bottleneck.ts, src/system/ops_log.ts, src/system/host_tuning.ts, src/web/pages/bottleneck.ts,
src/tui/screens/bottleneck.ts.