【发布时间】:2021-08-04 22:05:59
【问题描述】:
我正在尝试在 AWS ECS 中创建弹性搜索集群,但收到警告 "message": "master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes。我的 elasticsearch.yml 和任务定义对于所有节点都是相同的。如何区分主节点和其他节点?我应该为主节点单独定义 elasticsearch.yml/task 吗?
我的 elasticsearch.yml :
cluster.name: "xxxxxxxxxxx"
bootstrap.memory_lock: false
network.host: 0.0.0.0
network.publish_host: _ec2:privateIp_
transport.publish_host: _ec2:privateIp_
discovery.seed_providers: ec2
discovery.ec2.tag.project: xxxxxxx-elasticsearch
discovery.ec2.endpoint: ec2.${REGION}.amazonaws.com
s3.client.default.endpoint: s3.${REGION}.amazonaws.com
cloud.node.auto_attributes: true
cluster.routing.allocation.awareness.attributes: aws_availability_zone
xpack.security.enabled: false
【问题讨论】:
-
你的
elasticsearch.yml是什么?用它更新你的问题。 -
elasticsearch.yml在问题中更新