fix: resource tuning — LiveKit Recreate strategy, OpenSearch JVM heap, login-ui

LiveKit: switch to Recreate deployment strategy. hostPorts (TURN UDP relay
range) block RollingUpdate because the new pod cannot schedule while the
old one still holds the ports.

OpenSearch: set OPENSEARCH_JAVA_OPTS to -Xms192m -Xmx256m. The upstream
default (-Xms512m -Xmx1g) immediately OOMs the container given our 512Mi
memory limit.

login-ui: raise memory limit from 64Mi to 192Mi and add a 64Mi request;
the previous limit was too tight and caused OOMKilled restarts under load.
This commit is contained in:
2026-03-02 18:33:42 +00:00
parent 3f516dc4d3
commit 7de6e94a8d
2 changed files with 14 additions and 0 deletions

View File

@@ -36,3 +36,8 @@ deployment:
requests: requests:
memory: 64Mi memory: 64Mi
cpu: 100m cpu: 100m
# Recreate strategy: hostPorts (TURN UDP relay range) block RollingUpdate —
# the new pod cannot schedule while the old one still holds the host ports.
deploymentStrategy:
type: Recreate

View File

@@ -74,9 +74,16 @@ spec:
spec: spec:
containers: containers:
- name: opensearch - name: opensearch
env:
# Reduce JVM heap so it fits within the 512Mi container limit.
# Base sets -Xms512m -Xmx1g which immediately OOMs the container.
- name: OPENSEARCH_JAVA_OPTS
value: "-Xms192m -Xmx256m"
resources: resources:
limits: limits:
memory: 512Mi memory: 512Mi
requests:
memory: 256Mi
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
@@ -121,6 +128,8 @@ spec:
- name: login-ui - name: login-ui
resources: resources:
limits: limits:
memory: 192Mi
requests:
memory: 64Mi memory: 64Mi
--- ---