From 530320bbfeca1695761c344c613a085021612d4a Mon Sep 17 00:00:00 2001 From: Lance Walters Date: Sun, 22 Nov 2026 05:42:52 -0500 Subject: [PATCH] ops(siriussec): bound CPU bursts to the 15W power budget siriussec is a T480 on a 5V/3A (15W) USB-C supply and died 2026-11-22 04:20 after ~12h on battery. Host PL1 was 25W with turbo on, so any sustained burst outran the adapter. Cap the two workload-side bursts that can pin cores: - forgejo-runner-amd64 dind: no CPU limit before -> add cpu: 3 - metabase + farrisilk metabase: cpu limit 2 -> 1 each (two JVMs = 4 threads) Host-side cap (PL1 12W/PL2 15W, no_turbo=1) is applied by cpu-power-cap.service on the node itself, not by this repo. --- apps/base/farrisilk/metabase.yaml | 3 ++- apps/base/forgejo/runner-amd64.yaml | 5 +++++ apps/base/metabase/deployment.yaml | 6 +++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/apps/base/farrisilk/metabase.yaml b/apps/base/farrisilk/metabase.yaml index 4cc9330..b8653e2 100644 --- a/apps/base/farrisilk/metabase.yaml +++ b/apps/base/farrisilk/metabase.yaml @@ -87,7 +87,8 @@ spec: cpu: 250m memory: 1Gi limits: - cpu: "2" + # Capped with the main Metabase: see apps/base/metabase/deployment.yaml + cpu: "1" memory: 2Gi --- apiVersion: v1 diff --git a/apps/base/forgejo/runner-amd64.yaml b/apps/base/forgejo/runner-amd64.yaml index 7fa6dba..459971e 100644 --- a/apps/base/forgejo/runner-amd64.yaml +++ b/apps/base/forgejo/runner-amd64.yaml @@ -117,6 +117,11 @@ spec: cpu: 200m memory: 512Mi limits: + # Hard ceiling on CI burst draw: siriussec is a laptop on a 15 W + # USB-C supply, and dind previously had no CPU limit, so one + # Android/x86_64 build could pin all 8 threads (~25 W package) + # and drain the battery faster than the adapter refills it. + cpu: 3 memory: 4Gi - name: runner image: code.forgejo.org/forgejo/runner:5.0.1 diff --git a/apps/base/metabase/deployment.yaml b/apps/base/metabase/deployment.yaml index d7c6fd2..2536dc6 100644 --- a/apps/base/metabase/deployment.yaml +++ b/apps/base/metabase/deployment.yaml @@ -79,5 +79,9 @@ spec: cpu: 250m memory: 1Gi limits: - cpu: "2" + # 2 → 1: two Metabase JVMs on the gateway node could together + # burst to 4 threads on a 15 W adapter. 1 core each keeps the + # node inside its power budget; UI latency is unaffected at this + # query volume. + cpu: "1" memory: 2Gi