I am trying to run 5 elasticsearch instances in a single machine each
having its own port and elasticsearch.yml files
When I start NodeA, I get the following warning of no initial state was
set by discovery
] [NodeA] version[1.0.0], pid[11165], build[a46900e/2014-02-12T16:18:34Z]
[2014-03-03 11:46:41,049][INFO ][node ] [NodeA]
initializing ...
[2014-03-03 11:46:41,054][INFO ][plugins ] [NodeA] loaded
[], sites []
[2014-03-03 11:46:44,133][INFO ][node ] [NodeA]
initialized
[2014-03-03 11:46:44,133][INFO ][node ] [NodeA]
starting ...
[2014-03-03 11:46:44,285][INFO ][transport ] [NodeA]
bound_address {inet[/0:0:0:0:0:0:0:0:9301]}, publish_address
{inet[/10.226.20.99:9301]}
[2014-03-03 11:47:14,298][WARN ][discovery ] [NodeA] waited
for 30s and no initial state was set by the discovery
[2014-03-03 11:47:14,299][INFO ][discovery ] [NodeA]
myCluster/BUpJ6SX2TCa8s_2Z0Zoizw
[2014-03-03 11:47:14,306][INFO ][http ] [NodeA]
bound_address {inet[/0:0:0:0:0:0:0:0:9201]}, publish_address
{inet[/10.226.20.99:9201]}
[2014-03-03 11:47:14,312][INFO ][node ] [NodeA] started
I have made the following changes in the respective elasticsearch.yml file
Instance 1
cluster.name: myCluster
node.name: "NodeA"
node.master: true
node.data: true
index.number_of_shards: 5
index.number_of_replicas: 2
transport.tcp.port: 9301
http.port: 9201
discovery.zen.minimum_master_nodes: 3
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["10.226.20.99"]
Instance 2
cluster.name: myCluster
node.name: "NodeB"
node.master: true
node.data: true
index.number_of_shards: 5
index.number_of_replicas: 2
transport.tcp.port: 9302
http.port: 9202
discovery.zen.minimum_master_nodes: 3
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["10.226.20.99"]
Instance 3
cluster.name: myCluster
node.name: "NodeC"
node.master: true
node.data: true
index.number_of_shards: 5
index.number_of_replicas: 2
transport.tcp.port: 9303
http.port: 9203
discovery.zen.minimum_master_nodes: 3
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["10.226.20.99"]
Instance 4
cluster.name: myCluster
node.name: "NodeD"
node.master: false
node.data: true
index.number_of_shards: 5
index.number_of_replicas: 2
transport.tcp.port: 9304
http.port: 9204
discovery.zen.minimum_master_nodes: 3
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["10.226.20.99"]
Instance 5 (load balancer)
cluster.name: myCluster
node.name: "NodeE"
node.master: false
node.data: false
index.number_of_shards: 5
index.number_of_replicas: 2
transport.tcp.port: 9305
http.port: 9205
discovery.zen.minimum_master_nodes: 3
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["10.226.20.99"]
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/e2749fb6-3d93-4d63-9ee8-60301e794e2b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.