Skip to content

Commit

Permalink
chore(openchallenges): switch to a single ES instance (ARCH-370) (#2942)
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaffter authored Dec 12, 2024
1 parent d0b678e commit 72b24a5
Showing 1 changed file with 2 additions and 51 deletions.
53 changes: 2 additions & 51 deletions docker/openchallenges/services/elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 72b24a5

Please sign in to comment.