From 2f6698edbeec33d9484fa966ca77fd56ada9dc99 Mon Sep 17 00:00:00 2001 From: Story Crater Bot <19826264+Riotpiaole@users.noreply.github.com> Date: Thu, 13 Aug 2026 08:03:22 -0700 Subject: [PATCH] =?UTF-8?q?fix(homarr):=20raise=20CPU=20limit=20500m->2=20?= =?UTF-8?q?+=20disable=20analytics=20cron=20=E2=80=94=20Next.js=20aborted?= =?UTF-8?q?=20with=20exit=20134=20(SIGABRT)=20under=20CPU=20throttle=20dur?= =?UTF-8?q?ing=20icon-updater/analytics,=20self-restarting=20in=20a=20loop?= =?UTF-8?q?=20and=20502ing=20at=20the=20ingress?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- k8s/apps/homarr/homarr-values.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/k8s/apps/homarr/homarr-values.yaml b/k8s/apps/homarr/homarr-values.yaml index 5a260ca..f85d126 100644 --- a/k8s/apps/homarr/homarr-values.yaml +++ b/k8s/apps/homarr/homarr-values.yaml @@ -40,6 +40,9 @@ env: AUTH_OIDC_AUTO_LOGIN: "false" # Link the OIDC identity to an existing homarr account with the same email. OAUTH_ALLOW_DANGEROUS_EMAIL_ACCOUNT_LINKING: "true" + # The analytics cron blocked the (single-threaded) Next.js event loop for ~16s + # per run ("callback took longer than expected"), compounding CPU pressure. + DISABLE_ANALYTICS: "true" BASE_URL: "https://homarr.riotpiao.com" NEXTAUTH_URL: "https://homarr.riotpiao.com" @@ -64,8 +67,12 @@ tolerations: resources: requests: - cpu: 100m - memory: 256Mi + cpu: 250m + memory: 384Mi limits: - cpu: 500m - memory: 512Mi + # Next.js 16 + bundled redis + the icon-updater (28k icons) saturated the old + # 500m limit; CPU throttling made Next.js abort with exit 134 (SIGABRT) and + # self-restart in a loop, so nginx saw no upstream and returned 502. Give it + # real CPU headroom. + cpu: "2" + memory: 1Gi