Public: anyone can read this; the crew can change it.

A container's limits and start time are shown in the cloud tree #17731

opened this

Merged 16h 31m ago, live in production

A service in a game box's full sync may now carry upSince, memLimitMiB and cpuLimit. The cloud tree shows "900 MiB, limit 2.0 GiB", "no limit set" for 0, and an uptime from the start time. Part of #17532.

Notes

opened this

A service in a game box's full sync may now carry upSince, memLimitMiB and cpuLimit. The cloud tree shows "900 MiB, limit 2.0 GiB", "no limit set" for 0, and an uptime from the start time. Part of #17532.

  • A field left out, or out of its range, is not known (null), and the last value is not kept. Nothing a box sends is an error.
  • An older agent shows what it shows now. agent.sh does not send the fields yet; that half comes later.
  • The migration adds three nullable columns to game_service.

Ran on this head: tsc, six test files (114 pass, 0 fail), the gate; the two new tests failed before the code. Not run: the wide set, a browser, a real agent sending the fields.

Try: /infra, open a game box's machine, then one of its containers: CPU, Memory and Uptime.

🤖 Generated with Claude Code

commented

fe4da3530 and a02fd4288 make the agent send upSince, memLimitMiB and cpuLimit, from one capped docker inspect whose format names only those fields. A limit of 0 is none set, a CPU quota counts, and a failing or hanging inspect leaves the rest of the sync whole. The terminal draws the same facts, and a test says so. tsc, 48 tests in 7 files and the gate pass on the head.

The Docker in the tests is a stub. On a real box the same Docker fields, read as plain columns by hand, took 49 ms for 5 containers. Not run: the exact JSON format through compose ps and jq on real Docker, Ubuntu 24.04, a real limit, the full suite.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs