Skip to content

Commit f077420

Browse files
authored
fix(http-cache,vpa): fix haproxy 3.3 backend name conflict and vpa-for-vpa OOM (#2654)
## What this PR does Fixes two independent issues found during cluster operations: **http-cache (HAProxy 3.3 breaking change)** HAProxy 3.3 no longer allows a frontend and backend to share the same name. The existing config had both `frontend http` and `backend http`, which causes haproxy to refuse to start on upgrade. Rename `backend http` → `backend cache` and update the `default_backend` directive accordingly. **vpa-for-vpa (OOMKilled recommender)** The VPA recommender deployed by `vpa-for-vpa` was hitting its 512Mi memory limit and being OOMKilled. Increase the limit to 1Gi to keep the recommender running stably. ### Release note ```release-note fix(http-cache): rename haproxy backend to avoid HAProxy 3.3 name conflict between frontend and backend fix(vpa): increase vpa-for-vpa recommender memory limit from 512Mi to 1Gi to prevent OOMKilled restarts ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Corrected HAProxy routing so HTTP traffic is directed to the cache backend. * Increased the VPA recommender’s memory limit to improve reliability under higher workloads. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2 parents c503ae2 + 9992985 commit f077420

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/apps/http-cache/templates/haproxy/configmap.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ data:
6363
# overwrite real IP header from anywhere else
6464
http-request set-header X-Forwarded-For %[src] if !from_cf
6565
66-
default_backend http
66+
default_backend cache
6767
68-
backend http
68+
backend cache
6969
mode http
7070
balance uri whole
7171
hash-type consistent

‎packages/system/vertical-pod-autoscaler/templates/vpa-for-vpa.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ spec:
5151
recommender-name: vpa-for-vpa
5252
resources:
5353
limits:
54-
memory: 512Mi
54+
memory: 1Gi
5555
requests:
5656
cpu: 100m
5757
memory: 512Mi

0 commit comments

Comments
 (0)