| index a556f17e5..91ec374af 100644 |
| --- a/internal/console/testdata/perf-budgets.txt |
| +++ b/internal/console/testdata/perf-budgets.txt |
| @@ -2,7 +2,7 @@ |
| # ignored. Read by the perf walk (perfbudgets_test.go). |
| # |
| # <screen> over: <reason> known slow today; measured and printed, never |
| -# failed; plan 2 deletes the record |
| +# failed; the next round deletes the record |
| # <screen> calls <n>: <reason> this screen may make n remote calls on a |
| # warm-cache GET (n >= 1) |
| # <screen> deferred: <reason> a deferred-part endpoint: timed and printed, |
| @@ -31,33 +31,37 @@ GET /auth/cli/whoami skip: a bearer-token JSON door, not a screen; timed in prod |
| # Deferred parts: timed and printed, exempt from 150 ms and the call count. |
| GET /a/{sqid}/apps/{app}/logs/data deferred: deferred part (the Logs tab's data endpoint) |
| |
| -# Known slow today (measured 2026-10-26, with 25 ms per S3 request and 40 ms |
| -# per app-host call). Plan 2 deletes these. "the app-tab frame" is what every |
| -# app tab reads before its own part: the production flag, the pipeline, and a |
| -# listing plus one read per channel (6 S3 calls). It is cached per app for |
| -# 30 s (appframe.go), so a warm view reads none of it; the account manifest |
| -# is read once per process and then remembered. |
| -/fleet/architecture over: reads economics/active.json, infra/inventory.json and status/fleet.json, and lists and reads every box report (8 S3 calls warm) |
| -GET /a/{sqid}/apps/{app} over: Overview is the release listing and every manifest (3 S3 calls warm, median about 80 ms); cold, also the app-tab frame and every box's metrics hours for two days (about 110) |
| -GET /a/{sqid}/apps/{app}/account-review over: a warm view reads nothing (the app-tab frame is cached); a cold view reads the frame and the account manifest (7 S3 calls, about 185 ms) |
| -GET /a/{sqid}/apps/{app}/activity over: a warm view reads nothing (the app-tab frame is cached); a cold view reads the frame and the account manifest (7 S3 calls, about 185 ms) |
| -GET /a/{sqid}/apps/{app}/analytics over: both telemetry settings, the analytics day listing and one day read (4 S3 calls warm, median about 105 ms); cold, also the app-tab frame and the account manifest (11 S3 calls, about 290 ms) |
| -GET /a/{sqid}/apps/{app}/availability over: both telemetry settings and three listings and a read each for the log and error chunks (10 S3 calls warm) |
| -GET /a/{sqid}/apps/{app}/errors over: both telemetry settings and three listings and a read each for the log and error chunks (10 S3 calls warm) |
| +# Known slow today (measured 2026-10-26 after console-perf-quick-wins, with |
| +# 25 ms per S3 request and 40 ms per app-host call). The next round deletes |
| +# these. "the app-tab frame" is what every app tab reads before its own part: |
| +# the production flag, the pipeline, and a listing plus one read per channel |
| +# (6 S3 calls). It is cached per app for 30 s (appframe.go), so a warm view |
| +# reads none of it; the account manifest is read once per process and then |
| +# remembered. A cold view (perfColdReset) reads both: 7 S3 calls, about |
| +# 180 ms, over the 150 ms budget on their own, which keeps every app tab here. |
| +# The walk prints only warm counts for these records; the cold counts below |
| +# were measured by walking with each record turned into a calls record. |
| +/fleet/architecture over: reads economics/active.json, infra/inventory.json and status/fleet.json, and lists and reads every box report (8 S3 calls warm and cold, median about 260 ms) |
| +GET /a/{sqid}/apps/{app} over: Overview is the release listing and every manifest (3 S3 calls warm, median about 80 ms); cold, also the app-tab frame, the account manifest and every box's metrics hours for two days (129 S3 calls, about 1.1 s) |
| +GET /a/{sqid}/apps/{app}/account-review over: a warm view reads nothing (0 S3 calls; the app-tab frame is cached); a cold view reads the frame and the account manifest (7 S3 calls, about 185 ms) |
| +GET /a/{sqid}/apps/{app}/activity over: a warm view reads nothing (0 S3 calls; the app-tab frame is cached); a cold view reads the frame and the account manifest (7 S3 calls, about 185 ms) |
| +GET /a/{sqid}/apps/{app}/analytics over: both telemetry settings, the analytics day listing and one day read (4 S3 calls warm, median about 105 ms); cold, also the app-tab frame and the account manifest (11 S3 calls, about 285 ms) |
| +GET /a/{sqid}/apps/{app}/availability over: both telemetry settings and three listings and a read each for the log and error chunks (10 S3 calls warm, median about 260 ms); cold, also the app-tab frame and the account manifest (17 S3 calls, about 440 ms) |
| +GET /a/{sqid}/apps/{app}/errors over: both telemetry settings and three listings and a read each for the log and error chunks (10 S3 calls warm, median about 260 ms); cold, also the app-tab frame and the account manifest (17 S3 calls, about 440 ms) |
| GET /a/{sqid}/apps/{app}/instances over: instances.json, and every edges file and box report listed and read once per view (9 S3 calls warm, median about 290 ms); cold, also the app-tab frame and the account manifest (16 S3 calls and 1 host call, about 510 ms) |
| GET /a/{sqid}/apps/{app}/instances/{host} over: the instance record, instances.json, the edges listing, and the box reports and the fleet box reports listed and read once per view (10 S3 calls warm, median about 315 ms); cold, also the app-tab frame and the account manifest (17 S3 calls, about 495 ms) |
| GET /a/{sqid}/apps/{app}/logs over: three listings for the log chunks and a chunk read; the host picker uses the records the page already holds (4 S3 calls warm, median about 105 ms); cold, also the app-tab frame and the account manifest (11 S3 calls, about 285 ms) |
| -GET /a/{sqid}/apps/{app}/releases over: the release and tag listings, at most 20 manifests, retention and instances.json (6 S3 calls warm, median about 160 ms; 4 on the fixture's empty page 2) |
| -GET /a/{sqid}/apps/{app}/settings over: the one-key app listing for the rename check (a second for the legacy prefix when the first is empty) and the swap policy (2 S3 calls warm, 3 at most); cold, also the app-tab frame and the account manifest (30 S3 calls, about 235 ms) |
| -GET /a/{sqid}/apps/{app}/settings/{section} over: Domains still reads the domain claims, cert-warm records, every box report and every instance record (12 S3 calls warm, 20 cold); the other sections read only their own data: Environments 5 (the listing, and each environment and its store once), Storage 4, Email 1, Feature flags 1 (cold 8 to 12); Errors and analytics 2 (both telemetry settings); the pipeline section, Placement, Delete and the advanced redirect none |
| -GET /a/{sqid}/fleet over: reads status/fleet.json and lists and reads each customer fleet's box reports (3 S3 calls warm) |
| -GET /a/{sqid}/fleets/{fleet} over: lists and reads the fleet's box reports (2 S3 calls warm) |
| +GET /a/{sqid}/apps/{app}/releases over: the release and tag listings, at most 20 manifests, retention and instances.json (6 S3 calls warm, median about 160 ms; 4 on the fixture's empty page 2); cold, also the app-tab frame and the account manifest (13 S3 calls, about 340 ms; 11 on page 2) |
| +GET /a/{sqid}/apps/{app}/settings over: the one-key app listing for the rename check (a second for the legacy prefix when the first is empty) and the swap policy (2 S3 calls warm, 3 at most, median about 55 ms); cold, also the app-tab frame and the account manifest (9 S3 calls, about 235 ms) |
| +GET /a/{sqid}/apps/{app}/settings/{section} over: Domains still reads the domain claims, cert-warm records, every box report and every instance record (12 S3 calls warm, median about 365 ms; 20 cold); the other sections read only their own data, warm (cold adds the app-tab frame and the account manifest, 7 more): General 2 (cold 9), Environments 5 (12), Storage 4 (11), Email 1 (8), Feature flags 1 (8), Errors and analytics 2 (9), the pipeline section, Placement and Delete none (7); the advanced redirect none, warm or cold |
| +GET /a/{sqid}/fleet over: reads status/fleet.json and lists and reads each customer fleet's box reports (3 S3 calls warm and cold, median about 80 ms) |
| +GET /a/{sqid}/fleets/{fleet} over: lists and reads the fleet's box reports (2 S3 calls warm and cold, median about 55 ms) |
| GET /a/{sqid}/plan/keep over: the lapse inventory lists every app's instance records and reads each one, lists every app's sidecar records, and lists the domain claims (8 S3 calls warm for two apps and three instances, median 209 ms; it grows with the account) |
| GET /a/{sqid}/settings calls 2: the account telemetry settings and the storage entitlement |
| -GET /a/{sqid}/{$} over: a warm view reads nothing (each app's frame is cached); a cold view reads every app's frame (6 S3 calls per app, about 160 ms for one) |
| -GET /a/{sqid}/trash over: reads each trashed app's deleted.json marker (1 S3 call warm per app) |
| -GET /fleet over: lists and reads every box report, reads status/fleet.json, and lists and reads the storage entitlements (8 S3 calls warm) |
| -GET /fleet/economics over: the cold view sweeps usage for every day of the period (about 160 S3 calls, over 4 s); warm views come from the 60 s cache |
| -GET /fleet/economics/accounts over: shares /fleet/economics's sweep cache, so its own cold view is that same sweep |
| -GET /fleet/metrics over: a cold view reads every box's metrics hours for two days (about 100 S3 calls, 170 ms); warm views are cached, and in the walk the app pages before it fill that cache until perfColdReset clears it |
| -GET /fleet/store over: lists the storage entitlements and the storage usage days and reads each pending application (3 S3 calls warm) |
| +GET /a/{sqid}/{$} over: a warm view reads nothing (0 S3 calls; each app's frame is cached); a cold view reads every app's frame (6 S3 calls per app, about 155 ms for one) |
| +GET /a/{sqid}/trash over: reads each trashed app's deleted.json marker (1 S3 call warm and cold per app) |
| +GET /fleet over: lists and reads every box report, reads status/fleet.json, and lists and reads the storage entitlements (8 S3 calls warm and cold, median about 260 ms) |
| +GET /fleet/economics over: the cold view sweeps usage for every day of the period (162 S3 calls, about 4.1 s); warm views come from the 60 s cache (0 S3 calls) |
| +GET /fleet/economics/accounts over: shares /fleet/economics's sweep cache, so its own cold view is that same sweep (0 S3 calls warm) |
| +GET /fleet/metrics over: a cold view reads every box's metrics hours for two days (about 120 S3 calls, counted in Overview's cold view); warm views are cached (0 S3 calls), and the walk never sees it cold: the app pages before it fill that cache and perfColdReset leaves it |
| +GET /fleet/store over: lists the storage entitlements and the storage usage days and reads each pending application (3 S3 calls warm and cold, median about 80 ms) |