problem: elasticsearch node discovery doesn't work. (tested on local trusty)
How to recreate :
create five elk nodes as follow: juju deploy local:trusty/elasticsearch master juju deploy local:trusty/elasticsearch slave juju add-unit -n 3 slave
however health check (by below json command) of master node revealed node discovery has been unsuccessful.
curl -XGET 'http://10.0.3.120:9200/_cluster/health?pretty=true' { "cluster_name" : "elasticsearch", "status" : "green", "timed_out" : false, "number_of_nodes" : 1, <== should be 5 "number_of_data_nodes" : 1, <== should be 5 "active_primary_shards" : 0, "active_shards" : 0, "relocating_shards" : 0, "initializing_shards" : 0, "unassigned_shards" : 0 }
Expected discovery : curl -XGET 'http://10.0.3.114:9200/_cluster/health?pretty=true' { "cluster_name" : "elasticsearch", "status" : "green", "timed_out" : false, "number_of_nodes" : 5, "number_of_data_nodes" : 5, "active_primary_shards" : 0, "active_shards" : 0, "relocating_shards" : 0, "initializing_shards" : 0, "unassigned_shards" : 0 }
problem:
elasticsearch node discovery doesn't work. (tested on local trusty)
How to recreate :
create five elk nodes as follow: elasticsearch master elasticsearch slave
juju deploy local:trusty/
juju deploy local:trusty/
juju add-unit -n 3 slave
however health check (by below json command) of master node revealed
node discovery has been unsuccessful.
curl -XGET 'http:// 10.0.3. 120:9200/ _cluster/ health? pretty= true' of_data_ nodes" : 1, <== should be 5 primary_ shards" : 0, shards" : 0, _shards" : 0, shards" : 0
{
"cluster_name" : "elasticsearch",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 1, <== should be 5
"number_
"active_
"active_shards" : 0,
"relocating_
"initializing
"unassigned_
}
Expected discovery : 10.0.3. 114:9200/ _cluster/ health? pretty= true' of_data_ nodes" : 5, primary_ shards" : 0, shards" : 0, _shards" : 0, shards" : 0
curl -XGET 'http://
{
"cluster_name" : "elasticsearch",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 5,
"number_
"active_
"active_shards" : 0,
"relocating_
"initializing
"unassigned_
}