From 71eb7ee34e841ba01e6053e07cc21fd32f5516ae Mon Sep 17 00:00:00 2001 From: Jonas Thelemann Date: Wed, 16 Sep 2026 17:47:47 +0200 Subject: [PATCH 1/2] perf: restore lost elasticsearch and redpanda memory limits --- src/development/elasticsearch/compose.yaml | 8 +++++++- src/development/redpanda/compose.yaml | 15 ++++++++++++--- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/development/elasticsearch/compose.yaml b/src/development/elasticsearch/compose.yaml index 9df8a7db..dafecc98 100644 --- a/src/development/elasticsearch/compose.yaml +++ b/src/development/elasticsearch/compose.yaml @@ -12,14 +12,20 @@ services: deploy: labels: - dargstack.profiles=zammad + resources: + limits: + memory: 1024m + reservations: + memory: 512m environment: bootstrap.memory_lock: "true" discovery.type: single-node ELASTIC_PASSWORD_FILE: /run/secrets/elasticsearch-password - ES_JAVA_OPTS: -Xms1g -Xmx1g + ES_JAVA_OPTS: -Xms512m -Xmx512m # The helpdesk sends bulk requests that exceed the 100mb default while it rebuilds its search index. http.max_content_length: 400mb KEYSTORE_PASSWORD_FILE: /run/secrets/elasticsearch-keystore-password + xpack.ml.enabled: "false" healthcheck: test: ["CMD-SHELL", "NETRC=$$(mktemp) && printf 'machine localhost\\nlogin elastic\\npassword %s\\n' \"$$(cat /run/secrets/elasticsearch-password)\" > \"$$NETRC\" && curl -fsS --netrc-file \"$$NETRC\" --cacert /usr/share/elasticsearch/config/certs/http_ca.crt 'https://localhost:9200/_cluster/health?wait_for_status=yellow&timeout=5s' && rm -f \"$$NETRC\" || { rm -f \"$$NETRC\"; exit 1; }"] interval: 30s diff --git a/src/development/redpanda/compose.yaml b/src/development/redpanda/compose.yaml index 57ec8045..09914fdd 100644 --- a/src/development/redpanda/compose.yaml +++ b/src/development/redpanda/compose.yaml @@ -3,15 +3,24 @@ services: # You can access the event streaming platform's ui as described under `redpanda-console`. command: - redpanda start - - --mode dev-container # dargstack:dev-only - - --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:19092 - --advertise-kafka-addr internal://redpanda:9092,external://localhost:19092 - - --pandaproxy-addr internal://0.0.0.0:8082,external://0.0.0.0:18082 - --advertise-pandaproxy-addr internal://redpanda:8082,external://localhost:18082 + - --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:19092 + - --memory 512M + - --mode dev-container # dargstack:dev-only + - --pandaproxy-addr internal://0.0.0.0:8082,external://0.0.0.0:18082 + - --reserve-memory 0M - --schema-registry-addr internal://0.0.0.0:8081,external://0.0.0.0:18081 + - --smp 1 deploy: labels: - dargstack.profiles=event-streaming + resources: + limits: + cpus: '1.0' + memory: 1024M + reservations: + memory: 512M healthcheck: test: ["CMD", "rpk", "cluster", "health", "--exit-when-healthy"] interval: 30s From 86d7349edc11b56adff2193d56c03278fd35d186 Mon Sep 17 00:00:00 2001 From: Jonas Thelemann Date: Wed, 16 Sep 2026 18:36:46 +0200 Subject: [PATCH 2/2] perf(elasticsearch): raise memory limit to 1536m after local load testing --- src/development/elasticsearch/compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/development/elasticsearch/compose.yaml b/src/development/elasticsearch/compose.yaml index dafecc98..4e0db07f 100644 --- a/src/development/elasticsearch/compose.yaml +++ b/src/development/elasticsearch/compose.yaml @@ -14,7 +14,7 @@ services: - dargstack.profiles=zammad resources: limits: - memory: 1024m + memory: 1536m reservations: memory: 512m environment: