У меня одна мастер нода, и одна дата нода. На разных впс. Как настроить между ними коннект?
Выдаёт ошибку
skipping cluster bootstrapping as local node does not match
version: '3.9'
services:
master:
image: elasticsearch:8.1.1
container_name: master
environment:
node.name: "master"
cluster.name: "elastic-cluster"
network.host: "0.0.0.0"
discovery.seed_hosts: "vps_node:1029"
cluster.initial_master_nodes: "master"
ELASTIC_PASSWORD: ${ELASTIC_PASSWORD}
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
bootstrap.memory_lock: "true"
xpack.security.enabled: "false"
xpack.security.transport.ssl.enabled: "false"
mem_limit: ${MEM_LIMIT}
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- master-data:/usr/share/elasticsearch/data
ports:
- 1026:9200
- 1027:9300
volumes:
master-data:
driver: local
version: '3.9'
services:
node01:
image: elasticsearch:8.1.1
container_name: node01
environment:
node.name: "node01"
cluster.name: "elastic-cluster"
network.host: "0.0.0.0"
discovery.seed_hosts: "vps_master:1026"
cluster.initial_master_nodes: "vps_master:1026"
ELASTIC_PASSWORD: ${ELASTIC_PASSWORD}
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
bootstrap.memory_lock: "true"
xpack.security.enabled: "false"
xpack.security.transport.ssl.enabled: "false"
mem_limit: ${MEM_LIMIT}
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- master-data:/usr/share/elasticsearch/data
ports: