diff --git a/src/development/elasticsearch/compose.yaml b/src/development/elasticsearch/compose.yaml index 9df8a7db..4e0db07f 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: 1536m + 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