History

feat: add box observability and resource controls

Ben Davis committed 3 months ago

Commit c3f98831 parent 594b18d33 files · +4694 −80Browse files

Showing the changes to box.env (1 of 33 files). Show all

Unified · Split

box.env+9−6
@@ -4,12 +4,15 @@ · 3 unmodified lines
44 # Apple Silicon smolvm pulls the native arm64 variant (no emulation).
55 BASE_IMAGE="ubuntu:24.04"
66
7−# VM sizing. Values are validated before smolvm is called. STORAGE_GIB is optional;
8−# the 64 GiB overlay leaves room for a large Hermes database and backup staging.
9−BOX_CPUS="4"
10−BOX_MEM_MIB="8192"
11−BOX_OVERLAY_GIB="64"
12−BOX_STORAGE_GIB=""
7+# Runtime sizing is per box and managed by `tx9 resources`, not baked into
8+# the image. Existing defaults remain agent=4 CPU/8 GiB and executor=2 CPU/
9+# 2 GiB. Docker local volumes are host-backed and unbounded; tx9 can attach
10+# advisory storage budgets without pretending they are filesystem quotas.
11+
12+# Durable process logs rotate at 20 MiB per file, keeping five generations.
13+# Native Codex, Claude, and Hermes histories retain their own upstream layout.
14+TX9_LOG_MAX_BYTES="20971520"
15+TX9_LOG_MAX_FILES="5"
1316
1417 # Node.js is managed by Vite+ (https://viteplus.dev), defaulted to the
1518 # current LTS at provision time (`vp env default lts`). claude and codex use