From be81ec69b0ed3571fb56d0048d95e937ce7488cb Mon Sep 17 00:00:00 2001 From: Pranith Rao Date: Tue, 11 Aug 2026 16:09:20 +0530 Subject: [PATCH] fix: set nginx worker_processes to fixed value to prevent OOMKill Signed-off-by: Pranith Rao --- ai-services/Makefile | 2 +- ai-services/assets/applications/rag-cpu/podman/values.yaml | 4 ++-- ai-services/assets/applications/rag-dev/openshift/values.yaml | 4 ++-- ai-services/assets/applications/rag-dev/podman/values.yaml | 4 ++-- ai-services/assets/applications/rag/openshift/values.yaml | 4 ++-- ai-services/assets/applications/rag/podman/values.yaml | 4 ++-- ai-services/assets/catalog/openshift/values.yaml | 4 ++-- ai-services/assets/catalog/podman/values.yaml | 4 ++-- ai-services/assets/services/chat/openshift/values.yaml | 2 +- ai-services/assets/services/chat/podman/values.yaml | 2 +- ai-services/assets/services/digitize/openshift/values.yaml | 2 +- ai-services/assets/services/digitize/podman/values.yaml | 2 +- ui/catalog/Makefile | 2 +- ui/catalog/nginx.conf.tmpl | 4 ++-- ui/chatbot/Makefile | 2 +- ui/chatbot/nginx.conf.tmpl | 4 ++-- ui/digitize/Makefile | 2 +- ui/digitize/nginx.conf.tmpl | 4 ++-- 18 files changed, 28 insertions(+), 28 deletions(-) diff --git a/ai-services/Makefile b/ai-services/Makefile index b5e294eed..1a1607635 100644 --- a/ai-services/Makefile +++ b/ai-services/Makefile @@ -1,6 +1,6 @@ REGISTRY?=icr.io/ai-services-private IMAGE=ai-services -TAG?=v0.0.228 +TAG?=v0.0.229 CONTAINER_BUILDER?=podman CREDS_ARG := $(if $(and $(REGISTRY_USER),$(REGISTRY_PASSWORD)),--creds="$(REGISTRY_USER):$(REGISTRY_PASSWORD)") diff --git a/ai-services/assets/applications/rag-cpu/podman/values.yaml b/ai-services/assets/applications/rag-cpu/podman/values.yaml index 5687bd240..ad85a66a7 100644 --- a/ai-services/assets/applications/rag-cpu/podman/values.yaml +++ b/ai-services/assets/applications/rag-cpu/podman/values.yaml @@ -2,7 +2,7 @@ ui: # @description Host port for the RAG UI. If unspecified, a random available port is assigned. Specify a port number to use a custom value. port: "" # @hidden - image: icr.io/ai-services-cicd/chatbot-ui:v0.0.49 + image: icr.io/ai-services-cicd/chatbot-ui:v0.0.50 backend: # @description Host port for the OpenAI-compatible RAG service. Defaults to unexposed; assign a port to enable external access. @@ -28,7 +28,7 @@ digitizeUi: # @description Host port for the DIGITIZE UI. If unspecified, a random available port is assigned. Specify a port number to use a custom value. port: "" # @hidden - image: icr.io/ai-services-cicd/digitize-ui:v0.0.30 + image: icr.io/ai-services-cicd/digitize-ui:v0.0.31 ingest: # @hidden diff --git a/ai-services/assets/applications/rag-dev/openshift/values.yaml b/ai-services/assets/applications/rag-dev/openshift/values.yaml index b9495faa9..005b9d9b2 100644 --- a/ai-services/assets/applications/rag-dev/openshift/values.yaml +++ b/ai-services/assets/applications/rag-dev/openshift/values.yaml @@ -1,6 +1,6 @@ ui: # @hidden - image: icr.io/ai-services-cicd/chatbot-ui:v0.0.49 + image: icr.io/ai-services-cicd/chatbot-ui:v0.0.50 backend: # @hidden @@ -34,7 +34,7 @@ digitize: digitizeUi: # @hidden - image: icr.io/ai-services-cicd/digitize-ui:v0.0.30 + image: icr.io/ai-services-cicd/digitize-ui:v0.0.31 instruct: # @description API key for vLLM instruct service authentication. If empty, authentication is disabled. Provide a key to enable authentication. diff --git a/ai-services/assets/applications/rag-dev/podman/values.yaml b/ai-services/assets/applications/rag-dev/podman/values.yaml index 5285fa7d0..78f5503a6 100644 --- a/ai-services/assets/applications/rag-dev/podman/values.yaml +++ b/ai-services/assets/applications/rag-dev/podman/values.yaml @@ -2,7 +2,7 @@ ui: # @description Host port for the RAG UI. If unspecified, a random available port is assigned. Specify a port number to use a custom value. port: "" # @hidden - image: icr.io/ai-services-cicd/chatbot-ui:v0.0.49 + image: icr.io/ai-services-cicd/chatbot-ui:v0.0.50 backend: # @description Host port for the OpenAI-compatible RAG service. Defaults to unexposed; assign a port to enable external access. @@ -28,7 +28,7 @@ digitizeUi: # @description Host port for the DIGITIZE UI. If unspecified, a random available port is assigned. Specify a port number to use a custom value. port: "" # @hidden - image: icr.io/ai-services-cicd/digitize-ui:v0.0.30 + image: icr.io/ai-services-cicd/digitize-ui:v0.0.31 ingest: # @hidden diff --git a/ai-services/assets/applications/rag/openshift/values.yaml b/ai-services/assets/applications/rag/openshift/values.yaml index 67a38c723..b4a96278e 100644 --- a/ai-services/assets/applications/rag/openshift/values.yaml +++ b/ai-services/assets/applications/rag/openshift/values.yaml @@ -1,6 +1,6 @@ ui: # @hidden - image: icr.io/ai-services-cicd/chatbot-ui:v0.0.49 + image: icr.io/ai-services-cicd/chatbot-ui:v0.0.50 backend: # @hidden @@ -34,7 +34,7 @@ digitize: digitizeUi: # @hidden - image: icr.io/ai-services-cicd/digitize-ui:v0.0.30 + image: icr.io/ai-services-cicd/digitize-ui:v0.0.31 instruct: # @hidden diff --git a/ai-services/assets/applications/rag/podman/values.yaml b/ai-services/assets/applications/rag/podman/values.yaml index fc6d45b56..d17989d00 100644 --- a/ai-services/assets/applications/rag/podman/values.yaml +++ b/ai-services/assets/applications/rag/podman/values.yaml @@ -2,7 +2,7 @@ ui: # @description Host port for the RAG UI. If unspecified, a random available port is assigned. Specify a port number to use a custom value. port: "" # @hidden - image: icr.io/ai-services-cicd/chatbot-ui:v0.0.49 + image: icr.io/ai-services-cicd/chatbot-ui:v0.0.50 backend: # @description Host port for the OpenAI-compatible RAG service. Defaults to unexposed; assign a port to enable external access. @@ -28,7 +28,7 @@ digitizeUi: # @description Host port for the DIGITIZE UI. If unspecified, a random available port is assigned. Specify a port number to use a custom value. port: "" # @hidden - image: icr.io/ai-services-cicd/digitize-ui:v0.0.30 + image: icr.io/ai-services-cicd/digitize-ui:v0.0.31 ingest: # @hidden diff --git a/ai-services/assets/catalog/openshift/values.yaml b/ai-services/assets/catalog/openshift/values.yaml index 9f7044fba..614eb57a5 100644 --- a/ai-services/assets/catalog/openshift/values.yaml +++ b/ai-services/assets/catalog/openshift/values.yaml @@ -1,5 +1,5 @@ ui: - image: icr.io/ai-services-cicd/catalog-ui:v0.0.49 + image: icr.io/ai-services-cicd/catalog-ui:v0.0.50 resources: requests: memory: "512Mi" @@ -9,7 +9,7 @@ ui: cpu: "500m" backend: - image: icr.io/ai-services-cicd/ai-services:v0.0.228 + image: icr.io/ai-services-cicd/ai-services:v0.0.229 runtime: "openshift" adminPasswordHash: "" resources: diff --git a/ai-services/assets/catalog/podman/values.yaml b/ai-services/assets/catalog/podman/values.yaml index 639be50e6..e0da82d8d 100644 --- a/ai-services/assets/catalog/podman/values.yaml +++ b/ai-services/assets/catalog/podman/values.yaml @@ -1,10 +1,10 @@ ui: port: "" - image: icr.io/ai-services-cicd/catalog-ui:v0.0.49 + image: icr.io/ai-services-cicd/catalog-ui:v0.0.50 backend: port: "" - image: icr.io/ai-services-cicd/ai-services:v0.0.228 + image: icr.io/ai-services-cicd/ai-services:v0.0.229 runtime: "" adminPasswordHash: "" podman: diff --git a/ai-services/assets/services/chat/openshift/values.yaml b/ai-services/assets/services/chat/openshift/values.yaml index 48486e928..391d29c97 100644 --- a/ai-services/assets/services/chat/openshift/values.yaml +++ b/ai-services/assets/services/chat/openshift/values.yaml @@ -1,5 +1,5 @@ ui: - image: icr.io/ai-services-cicd/chatbot-ui:v0.0.49 + image: icr.io/ai-services-cicd/chatbot-ui:v0.0.50 resources: requests: memory: "512Mi" diff --git a/ai-services/assets/services/chat/podman/values.yaml b/ai-services/assets/services/chat/podman/values.yaml index 52e787aa6..c5b10e349 100644 --- a/ai-services/assets/services/chat/podman/values.yaml +++ b/ai-services/assets/services/chat/podman/values.yaml @@ -1,6 +1,6 @@ ui: port: "" - image: icr.io/ai-services-cicd/chatbot-ui:v0.0.49 + image: icr.io/ai-services-cicd/chatbot-ui:v0.0.50 backend: port: "" diff --git a/ai-services/assets/services/digitize/openshift/values.yaml b/ai-services/assets/services/digitize/openshift/values.yaml index b2b072f78..badd277de 100644 --- a/ai-services/assets/services/digitize/openshift/values.yaml +++ b/ai-services/assets/services/digitize/openshift/values.yaml @@ -12,7 +12,7 @@ digitize: memory: "50Gi" digitizeUi: - image: icr.io/ai-services-cicd/digitize-ui:v0.0.30 + image: icr.io/ai-services-cicd/digitize-ui:v0.0.31 resources: requests: cpu: "50m" diff --git a/ai-services/assets/services/digitize/podman/values.yaml b/ai-services/assets/services/digitize/podman/values.yaml index 07ad2f810..14dd4e4ad 100644 --- a/ai-services/assets/services/digitize/podman/values.yaml +++ b/ai-services/assets/services/digitize/podman/values.yaml @@ -4,7 +4,7 @@ digitize: database: "digitize_metadata" digitizeUi: - image: icr.io/ai-services-cicd/digitize-ui:v0.0.30 + image: icr.io/ai-services-cicd/digitize-ui:v0.0.31 postgres: image: icr.io/ai-services-cicd/postgres:18-4 diff --git a/ui/catalog/Makefile b/ui/catalog/Makefile index 8b0a3ebc5..fb8f8e1c8 100644 --- a/ui/catalog/Makefile +++ b/ui/catalog/Makefile @@ -1,6 +1,6 @@ REGISTRY ?= icr.io/ai-services-private IMAGE ?= catalog-ui -TAG ?= v0.0.49 +TAG ?= v0.0.50 CREDS_ARG := $(if $(and $(REGISTRY_USER),$(REGISTRY_PASSWORD)),--creds="$(REGISTRY_USER):$(REGISTRY_PASSWORD)") CONTAINER_BUILDER ?= podman diff --git a/ui/catalog/nginx.conf.tmpl b/ui/catalog/nginx.conf.tmpl index b886230f9..f9f9ee461 100644 --- a/ui/catalog/nginx.conf.tmpl +++ b/ui/catalog/nginx.conf.tmpl @@ -1,10 +1,10 @@ -worker_processes auto; +worker_processes 2; error_log /var/log/nginx/error.log warn; pid /tmp/nginx.pid; events { - worker_connections 1024; + worker_connections 256; } http { diff --git a/ui/chatbot/Makefile b/ui/chatbot/Makefile index fd5476a5a..891d11c53 100644 --- a/ui/chatbot/Makefile +++ b/ui/chatbot/Makefile @@ -1,6 +1,6 @@ REGISTRY?=icr.io/ai-services-private IMAGE=chatbot-ui -TAG?=v0.0.49 +TAG?=v0.0.50 CREDS_ARG := $(if $(and $(REGISTRY_USER),$(REGISTRY_PASSWORD)),--creds="$(REGISTRY_USER):$(REGISTRY_PASSWORD)") CONTAINER_BUILDER?=podman diff --git a/ui/chatbot/nginx.conf.tmpl b/ui/chatbot/nginx.conf.tmpl index 2a3d63ef1..04bef0fc5 100644 --- a/ui/chatbot/nginx.conf.tmpl +++ b/ui/chatbot/nginx.conf.tmpl @@ -1,11 +1,11 @@ -worker_processes auto; +worker_processes 1; error_log /var/log/nginx/error.log warn; pid /tmp/nginx.pid; events { - worker_connections 1024; + worker_connections 256; } diff --git a/ui/digitize/Makefile b/ui/digitize/Makefile index 9f1a104f0..55f72cf15 100644 --- a/ui/digitize/Makefile +++ b/ui/digitize/Makefile @@ -1,6 +1,6 @@ REGISTRY ?= icr.io/ai-services-private IMAGE ?= digitize-ui -TAG ?= v0.0.30 +TAG ?= v0.0.31 CREDS_ARG := $(if $(and $(REGISTRY_USER),$(REGISTRY_PASSWORD)),--creds="$(REGISTRY_USER):$(REGISTRY_PASSWORD)") CONTAINER_BUILDER ?= podman diff --git a/ui/digitize/nginx.conf.tmpl b/ui/digitize/nginx.conf.tmpl index 294a3b875..64bf522e3 100644 --- a/ui/digitize/nginx.conf.tmpl +++ b/ui/digitize/nginx.conf.tmpl @@ -1,10 +1,10 @@ -worker_processes auto; +worker_processes 1; error_log /var/log/nginx/error.log warn; pid /tmp/nginx.pid; events { - worker_connections 1024; + worker_connections 256; } http {