carlos / platform Public

Size cap counts platform boxes for an app placed on a fleet, so xlarge is refused Issue open

Tito staging, v0.34.43, 2026-11-11.

bae/tito-pro is placed on fleet classic (--place fleet/classic). Its only box is box-1, a t4g.large with 7.8 GiB of memory. At the default 1 GiB, Pro's web plus Sidekiq sit at memory.high: the slice logged about 5.4 million high events overnight, box-1's load reached 15 on 2 vCPUs, and Pro stopped answering. Pro needs 2 GiB.

Both doors refuse it:

$ carlos apps set tito-pro --account tito --size xlarge
apps set: xlarge is more than a quarter of the memory on dorothy-sailing (3847 MiB). choose a smaller size
$ carlos instances set tito-pro.bae.staging.platform.tito.io --account tito --app tito-pro --size xlarge
instances set: xlarge is more than a quarter of the memory on dorothy-sailing (3847 MiB). choose a smaller size

dorothy-sailing is the staging IE platform box. Pro can never be placed there. sizeBoxes (internal/console/policysize.go) counts "the platform boxes of status.LoadBoxesComplete and the active roster rows of every fleet the account owns", without narrowing to the app's placement.

Ask: when an app or instance is placed on a fleet, judge the size against that fleet's boxes only. (A quarter of box-1's 7.8 GiB allows 2 GiB.)

Tito's own staging copies of Classic and Pro need xlarge to fit web and Sidekiq in one instance, and production on CARLOS will need it too. Tracking on the Tito side: PRO-6933.

Taken on branch fleet-size-cap-875, commit 15bae871. An app or instance placed on a fleet is now sized against that fleet's active boxes only. No platform box counts and no platform listing is read. This covers both doors (apps set --size and instances set --size) and an app with no instances yet. Astra review is running; not merged.

This alone will not let Pro take xlarge on box-1. xlarge is 2048 MiB. A quarter of box-1's 7.8 GiB is about 1997 MiB, so the check still refuses it, now naming box-1 instead of dorothy-sailing. The ask's arithmetic ("a quarter of 7.8 GiB allows 2 GiB") is a little short. A t4g.large reports less than 8192 MiB, so it can never hold xlarge under the quarter rule.

Ways forward, Tito side or platform side:

  1. Grow classic's box to a t4g.xlarge (16 GiB). xlarge then fits with this fix. Nothing else changes.
  2. Run Pro at large (1 GiB) on box-1 and split web and Sidekiq into separate instances.
  3. Change the platform rule, for example to a third of memory or to nominal instance memory. That is a policy change to spec §5.5 (#329) and needs Paul's call.

Merged as 225c41d, not released. The xlarge-on-box-1 question above is still open, so I'm leaving this thread open for it.

Interim release: 8a3d302 assigned v0.34.45, cut from main e6d1f204 (includes 225c41d0). Its release agent is publishing; Tito then updates its own staging console. I'll note here when it is Latest.

v0.34.45 is published and Latest (release, tag on e6d1f204). Tito can update its staging console to it; the size fix is console-side, so the boxes do not need it for #875.