We have 4 node elasticsearch ecs cluster. now problem is two nodes keep restarting elastic search containers and other two stable containers.
but unable to get masternode.
bash-4.1# cat /usr/share/elasticsearch/config/elasticsearch.yml
script.inline: true
cloud.aws.access_key: AKIAJXFMPDJ4GTC63CXQ
cloud.aws.secret_key: 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
cloud.aws.region: us-east-1
repositories.s3.bucket: "mpt-elk-snapshots"
node.master: true
node.data: true
xpack.security.enabled: false
cluster.name: cluster-prod
network.host: 0.0.0.0
network.publish_host: ec2:privateIp
discovery.type: ec2
discovery.ec2.any_group: false
discovery.ec2.groups: sg-*****
discovery.zen.hosts_provider: ec2
discovery.zen.minimum_master_nodes: 3
#discovery.zen.ping.multicast.enabled: false
working two nodes getting this output on health.
curl -XGET 'localhost:9200/_cluster/health?pretty'
{
"error" : {
"root_cause" : [
{
"type" : "master_not_discovered_exception",
"reason" : null
}
],
"type" : "master_not_discovered_exception",
"reason" : null
},
"status" : 503
}
please help me to resolve this issue
curl -XGET 'http://localhost:9200'
{
"name" : "casXLJFLD",
"cluster_name" : "prod-cluster",
"cluster_uuid" : "QbooN9HaTnSRJClksjdf4Zy1aw",
"version" : {
"number" : "5.5.1",
"build_hash" : "23c4swdo",
"build_date" : "2017-07-18T20:44:24.823Z",
"build_snapshot" : false,
"lucene_version" : "6.6.0"
},
"tagline" : "You Know, for Search"
}