From 0a54760e47c4fc388bb872160352fd5f2367e854 Mon Sep 17 00:00:00 2001 From: minottic Date: Thu, 14 Nov 2024 09:45:14 +0100 Subject: [PATCH] Tweak elastic config to avoit 137 --- services/backend/services/v4/services/elastic/compose.yaml | 2 +- services/backend/services/v4/services/elastic/config/.env | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/services/backend/services/v4/services/elastic/compose.yaml b/services/backend/services/v4/services/elastic/compose.yaml index 2dd4276a..17a3011e 100644 --- a/services/backend/services/v4/services/elastic/compose.yaml +++ b/services/backend/services/v4/services/elastic/compose.yaml @@ -3,7 +3,7 @@ services: image: docker.elastic.co/elasticsearch/elasticsearch:8.16.0 volumes: - esdata:/usr/share/elasticsearch/data - mem_limit: 1073741824 + mem_limit: 1.5g ulimits: memlock: soft: -1 diff --git a/services/backend/services/v4/services/elastic/config/.env b/services/backend/services/v4/services/elastic/config/.env index ffe7642d..60919b71 100644 --- a/services/backend/services/v4/services/elastic/config/.env +++ b/services/backend/services/v4/services/elastic/config/.env @@ -1,6 +1,5 @@ node.name=es01 cluster.name=docker-cluster -cluster.initial_master_nodes=es01 ELASTIC_PASSWORD="password" bootstrap.memory_lock=true xpack.security.enabled=false @@ -8,3 +7,5 @@ xpack.security.http.ssl.enabled=false xpack.security.transport.ssl.enabled=false xpack.license.self_generated.type=basic ES_JAVA_OPTS="-Xms512m -Xmx512m" +discovery.type=single-node +xpack.ml.enabled=false