rightsize: raise OOM-tight memory limits (batch 3/N — spike protection)
Some checks failed
ci/woodpecker/push/default Pipeline failed

shlink 512->704Mi, linkwarden 1Gi->1280Mi, chrome-service 2Gi->2624Mi, forgejo 4Gi->5Gi, f1-stream 256->384Mi. All were request==limit with 30d peak at 91-100% of the ceiling — a spike would OOM-kill them. Raising the limit (now Burstable, request<limit) gives real burst headroom. This is the genuine 'don't OOM on occasional spike' fix. Small add (~2.2Gi limits) vs the ~20Gi of fat removed in batches 1-2, so net overcommit keeps dropping.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Viktor Barzin 2026-06-29 15:28:11 +00:00
parent 418d1efb4b
commit bc626a2d89
5 changed files with 5 additions and 5 deletions

View file

@ -321,7 +321,7 @@ resource "kubernetes_deployment" "chrome_service" {
memory = "1500Mi" memory = "1500Mi"
} }
limits = { limits = {
memory = "2Gi" memory = "2624Mi"
} }
} }
} }

View file

@ -143,7 +143,7 @@ resource "kubernetes_deployment" "f1-stream" {
# 256Mi = upperBound x ~1.3 (bursty); requests=limits per convention. # 256Mi = upperBound x ~1.3 (bursty); requests=limits per convention.
resources { resources {
limits = { limits = {
memory = "256Mi" memory = "384Mi"
} }
requests = { requests = {
cpu = "50m" cpu = "50m"

View file

@ -347,7 +347,7 @@ resource "kubernetes_deployment" "forgejo" {
memory = "4Gi" memory = "4Gi"
} }
limits = { limits = {
memory = "4Gi" memory = "5Gi"
} }
} }
port { port {

View file

@ -201,7 +201,7 @@ resource "kubernetes_deployment" "linkwarden" {
memory = "1Gi" memory = "1Gi"
} }
limits = { limits = {
memory = "1Gi" memory = "1280Mi"
} }
} }
} }

View file

@ -232,7 +232,7 @@ resource "kubernetes_deployment" "shlink" {
# } # }
resources { resources {
limits = { limits = {
memory = "512Mi" memory = "704Mi"
} }
requests = { requests = {
cpu = "25m" cpu = "25m"