Skip to content

Commit d3c4f6a

Browse files
committed
Raise pod resources for the in-pod client build
jac-scale builds the vite/bun client bundle inside the pod on every boot. The 512Mi limit OOM-killed the build (exit 137), crash-looping the pod. Bump memory limit to 3Gi and CPU to 1500m to cover the build peak.
1 parent e33b257 commit d3c4f6a

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

jac.toml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@ readiness_initial_delay = 60
3232
# in-process + SQLite, which is all this app needs).
3333
mongodb_enabled = false
3434
redis_enabled = false
35-
# Resource requests are required for the HPA to compute CPU utilization.
36-
cpu_request = "100m"
37-
cpu_limit = "300m"
38-
memory_request = "256Mi"
39-
memory_limit = "512Mi"
35+
# jac-scale builds the client bundle (vite/bun) inside the pod on every boot,
36+
# which is memory- and CPU-hungry: a 512Mi limit OOM-kills the build (exit 137).
37+
# Limits must cover the build peak even though steady-state serving is light;
38+
# requests stay modest (build is a short burst) and let the HPA read CPU%.
39+
cpu_request = "250m"
40+
cpu_limit = "1500m"
41+
memory_request = "512Mi"
42+
memory_limit = "3Gi"
4043
# Attach to the cluster's shared AWS ALB (group jaseci-cluster-alb-2) instead of
4144
# standing up a dedicated NGINX controller + NLB per app. jac-scale emits the
4245
# ALB Ingress for `domain`; the ALB terminates TLS via the ACM cert, so no

0 commit comments

Comments
 (0)