I tried EC2 discovery with the following settings, still keeps "elected_as_master" with the other node.
discovery.type: ec2 discovery.ec2.groups: "security groups" discovery.ec2.host_type: private_ip cloud.aws.region: "ap-southeast-1" cloud.aws.access_key: [access key] cloud.aws.secret_key: [security key] cloud.node.auto_attributes: true #discovery.zen.minimum_master_nodes: 2 discovery.zen.ping.multicast.enabled: false Security groups: 1. Allow inbound Source IP "any" to port 9200. 2. Allow inbound Source IP "any" to port 9300. 3. Allow inbound All Traffic within subnet. it says from this link <https://github.com/elasticsearch/elasticsearch-cloud-aws/issues/105>As my firewall was blocking the connections from the private IPs, the ec2 discovery was not working. so I "Allow inbound All Traffic within subnet" in security groups. NODE1 [2014-07-23 11:33:34,862][DEBUG][discovery.ec2 ] [Tobirama] using dynamic discovery nodes [] [2014-07-23 11:33:34,863][DEBUG][discovery.ec2 ] [Tobirama] filtered ping responses: (filter_client[true], filter_data[false]) {none} [2014-07-23 11:33:34,869][DEBUG][cluster.service ] [Tobirama] processing [zen-disco-join (elected_as_master)]: execute [2014-07-23 11:33:34,871][DEBUG][cluster.service ] [Tobirama] cluster state updated, version [1], source [zen-disco-join *(elected_as_master*)] [2014-07-23 11:33:34,872][INFO ][cluster.service ] [Tobirama] new_master [Tobirama][cl1_rxmUTAmNtc1RfS2D4A][DV02][inet[/192.168.11.190:9300]], reason: zen-disco-join (elected_as_master) [2014-07-23 11:33:34,917][DEBUG][transport.netty ] [Tobirama] connected to node [[Tobirama][cl1_rxmUTAmNtc1RfS2D4A][DV02][inet[/192.168.11.190:9300]]] NODE2 [2014-07-23 11:42:16,132][DEBUG][discovery.ec2 ] [Hiruzen] using dynamic discovery nodes [] [2014-07-23 11:42:16,133][DEBUG][discovery.ec2 ] [Hiruzen] filtered ping responses: (filter_client[true], filter_data[false]) {none} [2014-07-23 11:42:16,248][DEBUG][cluster.service ] [Hiruzen] processing [zen-disco-join (elected_as_master)]: execute [2014-07-23 11:42:16,250][DEBUG][cluster.service ] [Hiruzen] cluster state updated, version [1], source [zen-disco-join ( *elected_as_master)]* [2014-07-23 11:42:16,251][INFO ][cluster.service ] [Hiruzen] new_master [Hiruzen][_A3cxw7mRyO-kdUbsue2lg][DV03][inet[/192.168.11.69:9300]], reason: zen-disco-join (elected_as_master) [2014-07-23 11:42:16,966][DEBUG][transport.netty ] [Hiruzen] connected to node [[Hiruzen][_A3cxw7mRyO-kdUbsue2lg][DV03][inet[/192.168.11.69:9300]]] [2014-07-23 11:42:16,967][DEBUG][cluster.service ] [Hiruzen] publishing cluster state version 1 [2014-07-23 11:42:16,968][DEBUG][cluster.service ] [Hiruzen] set local cluster state to version 1 [2014-07-23 11:42:16,971][DEBUG][river.cluster ] [Hiruzen] processing [reroute_rivers_node_changed]: execute [2014-07-23 11:42:16,971][DEBUG][river.cluster ] [Hiruzen] processing [reroute_rivers_node_changed]: no change in cluster_state [2014-07-23 11:42:16,972][DEBUG][cluster.service ] [Hiruzen] processing [zen-disco-join (elected_as_master)]: done applying updated cluster_state (version: 1) -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/189a1a41-abbe-4291-af1f-e2dc7d8b9ee3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
