Hi I need to be sure how should I define in docker compose node roles as I need to create one coordinator node per host.
According to guide from elastic page I should leave empty space for node.roles=
for coordinating node? https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html#coordinating-only-node
for example
es04:
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.0
container_name: es04
environment:
- node.name=es04
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es01,es02,es03
- cluster.initial_master_nodes=es01,es02,es03,es04
- node.roles=master,data_frozen
es02:
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.0
container_name: es02
environment:
- node.name=es02
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es01,es03,es04
- cluster.initial_master_nodes=es01,es02,es03,es04
- node.roles=
- path.repo=/usr/share/elasticsearch/snapshots
#- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1Gb
volumes:
- warm_data:/usr/share/elasticsearch/data
- snapshots:/usr/share/elasticsearch/snapshots
networks:
- elastic