Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
docs(grok-llm-proxy): state which measured peak exceeded the old 256Mi limit (#739)
Alfredo Lopez8d5c195bbed2
diff --git a/grok-llm-proxy/src/requestLimits.ts b/grok-llm-proxy/src/requestLimits.tsindex fda0c39fa..ec102e6aa 100644--- a/grok-llm-proxy/src/requestLimits.ts+++ b/grok-llm-proxy/src/requestLimits.ts@@ -20,8 +20,9 @@ export const DEFAULT_MAX_BODY_BYTES = CONTRACT_LIMITS.maxRequestBodyBytes + ENVE* canonical serialization). Without this bound the stream gate would let 24* bodies in. Measured with three 8 MiB bodies in flight, the process peaked at* 230-252 MiB of RSS with an uncapped heap and at 249-292 MiB with- * `--max-old-space-size=384` (one run per mode), past the former 256Mi limit,- * which is why the deployment sets that cap and a 768Mi memory limit.+ * `--max-old-space-size=384` (one run per mode). The capped run went past the+ * former 256Mi limit and the uncapped one came within 4 MiB of it, which is+ * why the deployment sets that cap and a 768Mi memory limit.*/export const IN_FLIGHT_BODY_BUDGET_BODIES = 3diff --git a/scripts/tests/test-grok-llm-proxy-deploy-contract.sh b/scripts/tests/test-grok-llm-proxy-deploy-contract.shindex 32d63b7f8..7889caf68 100755--- a/scripts/tests/test-grok-llm-proxy-deploy-contract.sh+++ b/scripts/tests/test-grok-llm-proxy-deploy-contract.sh@@ -73,8 +73,9 @@ if "CONTROL_API_INTERNAL_SERVICE_TOKENS" in text:# Three 8 MiB bodies in flight peaked at 230-252 MiB of RSS with an uncapped# heap and at 249-292 MiB with a 384 MiB old space (one run per mode). The-# former 256Mi limit sat at or under those peaks, so the pod gets the same-# 768Mi limit and heap cap as codex-llm-proxy.+# capped run went past the former 256Mi limit and the uncapped one came within+# 4 MiB of it, so the pod gets the same 768Mi limit and heap cap as+# codex-llm-proxy.memory_limit = re.search(r"limits:\n\s+cpu: \S+\n\s+memory: (\S+)", text)memory_request = re.search(r"requests:\n\s+cpu: \S+\n\s+memory: (\S+)", text)heap_cap = re.search(