From 5b96b841fc68963eebf707129287736bb9984159 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Fri, 5 Jun 2026 12:57:22 +0000 Subject: [PATCH] f1-stream: right-size memory 1Gi -> 256Mi (CDP-only, no bundled Chromium) Actual usage ~116Mi, Goldilocks/VPA upperBound ~185Mi (incl. live races over 99d). The 1Gi reservation was sized for the old bundled-Chromium image; the app now drives the remote chrome-service over CDP. 256Mi (upperBound x~1.3, bursty) requests=limits per convention; cpu request 100m -> 50m (VPA upperBound 49m). Frees ~768Mi of reserved cluster memory. --- stacks/f1-stream/main.tf | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/stacks/f1-stream/main.tf b/stacks/f1-stream/main.tf index 26d97eeb..5365b363 100644 --- a/stacks/f1-stream/main.tf +++ b/stacks/f1-stream/main.tf @@ -131,13 +131,17 @@ resource "kubernetes_deployment" "f1-stream" { image = "forgejo.viktorbarzin.me/viktor/f1-stream:${var.image_tag}" image_pull_policy = "Always" name = "f1-stream" + # Right-sized 2026-06-05: was 1Gi (bundled-Chromium era). The image is + # now CDP-only (verifier drives the remote chrome-service), so actual + # usage is ~116Mi and the VPA upperBound (incl. live races) is ~185Mi. + # 256Mi = upperBound x ~1.3 (bursty); requests=limits per convention. resources { limits = { - memory = "1Gi" + memory = "256Mi" } requests = { - cpu = "100m" - memory = "1Gi" + cpu = "50m" + memory = "256Mi" } } port {