Skip to content

fix(up): probe cloud API port 8080 instead of unbound 9090 and size memory for pinned apps - #103

Merged
zeekay merged 1 commit into
mainfrom
fix/up-probes-and-memory
Nov 27, 2026
Merged

zeekay merged 1 commit into
mainfrom
fix/up-probes-and-memory

Conversation

@zeekay

@zeekay zeekay commented Nov 27, 2026

Copy link
Copy Markdown
Member

Fixes the local dev 5-minute restart loop (84+ restarts) on hanzo up:

  • Root cause: hanzo up pointed both livenessProbe (/healthz, 30×10s = 5 min) and readinessProbe (/readyz) at legacy port 9090, which the light cmd/cloud host deliberately does not bind (matching prod, cmd/cloud serves /healthz and /readyz on its main HTTP port 8080). Kubelet SIGTERMed the pod every 5 minutes, causing coordinated fleet teardown and K9s Stream closed EOF.
  • Memory budget: raised cloud pod requests.memory from 1Gi (Warm=11) to half the VM RAM (2048Mi on default 4 GiB VM → Warm=26, clamped 1024..=4096Mi) so all 18 pinned subsystems (ai + 17 eager apps) fit cleanly without boot starvation.
  • Updated the_workload_deploys_the_pinned_image_on_the_forwarded_port to assert probes target port 8080 (not 9090) and request 2048Mi. Verified with cargo test commands::up::tests (23/23 passed).

…emory for pinned apps

- Point livenessProbe (/healthz) and readinessProbe (/readyz) at containerPort 8080 (matching production and cmd/cloud's actual probe routes) instead of legacy unbound port 9090, which caused kubelet to SIGTERM the local cloud pod every 5 minutes (30x10s).
- Scale cloud pod requests.memory to half the VM RAM (2048Mi on default 4 GiB VM, clamped 1024..=4096Mi) so CLOUD_MEMORY_REQUEST_MIB yields Warm=26, covering all 18 pinned subsystems instead of starving at Warm=11 under 1Gi.
@zeekay
zeekay merged commit 06432d7 into main Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant