From 72b24a5e78eac659ff8aa4bec64e4f598485792d Mon Sep 17 00:00:00 2001 From: Thomas Schaffter Date: Thu, 12 Dec 2024 14:43:24 -0800 Subject: [PATCH] chore(openchallenges): switch to a single ES instance (ARCH-370) (#2942) --- .../openchallenges/services/elasticsearch.yml | 53 +------------------ 1 file changed, 2 insertions(+), 51 deletions(-) diff --git a/docker/openchallenges/services/elasticsearch.yml b/docker/openchallenges/services/elasticsearch.yml index fea4b1c4e3..0dbcb0deab 100644 --- a/docker/openchallenges/services/elasticsearch.yml +++ b/docker/openchallenges/services/elasticsearch.yml @@ -6,8 +6,8 @@ services: environment: - node.name=openchallenges-elasticsearch - cluster.name=openchallenges-elasticsearch - - discovery.seed_hosts=openchallenges-elasticsearch-node-2,openchallenges-elasticsearch-node-3 - - cluster.initial_master_nodes=openchallenges-elasticsearch,openchallenges-elasticsearch-node-2,openchallenges-elasticsearch-node-3 + - discovery.seed_hosts= + - cluster.initial_master_nodes=openchallenges-elasticsearch - bootstrap.memory_lock=true - 'ES_JAVA_OPTS=-Xms1g -Xmx1g' networks: @@ -22,52 +22,3 @@ services: resources: limits: memory: 2G - depends_on: - openchallenges-elasticsearch-node-2: - condition: service_healthy - openchallenges-elasticsearch-node-3: - condition: service_healthy - - openchallenges-elasticsearch-node-2: - image: ghcr.io/sage-bionetworks/openchallenges-elasticsearch:${OPENCHALLENGES_VERSION:-local} - container_name: openchallenges-elasticsearch-node-2 - restart: always - environment: - - node.name=openchallenges-elasticsearch-node-2 - - cluster.name=openchallenges-elasticsearch - - discovery.seed_hosts=openchallenges-elasticsearch,openchallenges-elasticsearch-node-3 - - cluster.initial_master_nodes=openchallenges-elasticsearch,openchallenges-elasticsearch-node-2,openchallenges-elasticsearch-node-3 - - bootstrap.memory_lock=true - - 'ES_JAVA_OPTS=-Xms1g -Xmx1g' - networks: - - openchallenges - ulimits: - memlock: - soft: -1 - hard: -1 - deploy: - resources: - limits: - memory: 2G - - openchallenges-elasticsearch-node-3: - image: ghcr.io/sage-bionetworks/openchallenges-elasticsearch:${OPENCHALLENGES_VERSION:-local} - container_name: openchallenges-elasticsearch-node-3 - restart: always - environment: - - node.name=openchallenges-elasticsearch-node-3 - - cluster.name=openchallenges-elasticsearch - - discovery.seed_hosts=openchallenges-elasticsearch,openchallenges-elasticsearch-node-2 - - cluster.initial_master_nodes=openchallenges-elasticsearch,openchallenges-elasticsearch-node-2,openchallenges-elasticsearch-node-3 - - bootstrap.memory_lock=true - - 'ES_JAVA_OPTS=-Xms1g -Xmx1g' - networks: - - openchallenges - ulimits: - memlock: - soft: -1 - hard: -1 - deploy: - resources: - limits: - memory: 2G