How to create 2 elasticsearch cluster instances on two machine


(jonbondash) #1

Good morning

Can anyone guide me how to setup 2 or more instances of ElasticSearch
Cluster on two different window server machine on same network?

Thanks & Regards,
Jonbon Dash

--
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/21430aa5-17aa-4aca-b97d-f1f63f6fb4fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Kartavya) #2

You can use different cluster name.

Thanks,
Pulkit Agrawal

Sent from my iPhone

On 19-Jun-2014, at 11:58 AM, JONBON DASH jonbonworld@gmail.com wrote:

Good morning

Can anyone guide me how to setup 2 or more instances of ElasticSearch Cluster on two different window server machine on same network?

Thanks & Regards,
Jonbon Dash

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/21430aa5-17aa-4aca-b97d-f1f63f6fb4fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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/2E02730A-CBD2-4E74-80AD-29406890F51F%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


(jonbondash) #3

Hi Pulkit,

Thanks for the early response.

I want to maintain the same cluster name between two different machine.

For more clarification,

Suppose "NodeA" started with cluster name "elasticsearch_RM" in machine 1
as a master and "NodeB" started with same cluster name "elasticsearch_RM"
in machine 2 as worker. Both are running in same network.

What setup I need to define in elasticsearch.yml file, so that worker node
auto-discover the master node? If possible, can you please share some
sample YML configuration.

Thanks & Regards,
Jonbon Dash

On Thursday, June 19, 2014 12:16:41 PM UTC+5:30, Kartavya wrote:

You can use different cluster name.

Thanks,
Pulkit Agrawal

Sent from my iPhone

On 19-Jun-2014, at 11:58 AM, JONBON DASH <jonbo...@gmail.com <javascript:>>
wrote:

Good morning

Can anyone guide me how to setup 2 or more instances of ElasticSearch
Cluster on two different window server machine on same network?

Thanks & Regards,
Jonbon Dash

--
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 elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/21430aa5-17aa-4aca-b97d-f1f63f6fb4fa%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/21430aa5-17aa-4aca-b97d-f1f63f6fb4fa%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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/c048ac6a-cde9-4917-8559-149db5f7da64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Mark Walkom) #4

Have a search for unicast zen discovery in the docs and you will be good to
go.

Regards,
Mark Walkom

Infrastructure Engineer
Campaign Monitor
email: markw@campaignmonitor.com
web: www.campaignmonitor.com

On 19 June 2014 17:52, JONBON DASH jonbonworld@gmail.com wrote:

Hi Pulkit,

Thanks for the early response.

I want to maintain the same cluster name between two different machine.

For more clarification,

Suppose "NodeA" started with cluster name "elasticsearch_RM" in machine 1
as a master and "NodeB" started with same cluster name "elasticsearch_RM"
in machine 2 as worker. Both are running in same network.

What setup I need to define in elasticsearch.yml file, so that worker node
auto-discover the master node? If possible, can you please share some
sample YML configuration.

Thanks & Regards,
Jonbon Dash

On Thursday, June 19, 2014 12:16:41 PM UTC+5:30, Kartavya wrote:

You can use different cluster name.

Thanks,
Pulkit Agrawal

Sent from my iPhone

On 19-Jun-2014, at 11:58 AM, JONBON DASH jonbo...@gmail.com wrote:

Good morning

Can anyone guide me how to setup 2 or more instances of ElasticSearch
Cluster on two different window server machine on same network?

Thanks & Regards,
Jonbon Dash

--
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 elasticsearc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/21430aa5-17aa-4aca-b97d-f1f63f6fb4fa%
40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/21430aa5-17aa-4aca-b97d-f1f63f6fb4fa%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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/c048ac6a-cde9-4917-8559-149db5f7da64%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/c048ac6a-cde9-4917-8559-149db5f7da64%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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/CAEM624biJ85rKcaATgWnChsEPNConmoCcbdjGi-Qgq3NUQai8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(jonbondash) #5

Hi Mark,

I have tried with unicast zen discovery, but i am getting exception "failed
to send join request to master
".

This is the below configuration I set in elasticsearch.yml

NodeA:(192.168.19.102)
cluster.name: elasticsearch_RM
node.name: "ElasticSearch1"
node.master: true
node.data: true
transport.tcp.port: 9301
http.port: 9201

output:

[2014-06-19 16:00:15,572][INFO ][cluster.service ]
[ElasticSearch1] new_master
[ElasticSearch1][fStA_GANTZaiel_RREBAMg][DC-NG-01][inet[/192.168.19.102:9301]]{master=true},

  • reason: zen-disco-join (elected_as_master)*

NodeB: (192.168.19.105)
cluster.name: elasticsearch_RM
node.name: "ElasticSearch2"
node.master: false
node.data: true
transport.tcp.port: 9302
http.port: 9202
gateway.expected_nodes: 2
discovery.zen.minimum_master_nodes: 1
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["192.168.19.102:9301"]

output:

failed to send join request to master
[[ElasticSearch1][fStA_GANTZaiel_RREBAMg][DC-NG-01][inet[/192.168.19.102:9301]]{master=true}],
reason [org.elasticsearch.ElasticsearchTimeoutException: Timeout waiting
for task.]

Please let me know, if any configuration I have missed.

Thanks & Regards,
Jonbon Dash

On Thu, Jun 19, 2014 at 1:32 PM, Mark Walkom markw@campaignmonitor.com
wrote:

Have a search for unicast zen discovery in the docs and you will be good
to go.

Regards,
Mark Walkom

Infrastructure Engineer
Campaign Monitor
email: markw@campaignmonitor.com
web: www.campaignmonitor.com

On 19 June 2014 17:52, JONBON DASH jonbonworld@gmail.com wrote:

Hi Pulkit,

Thanks for the early response.

I want to maintain the same cluster name between two different machine.

For more clarification,

Suppose "NodeA" started with cluster name "elasticsearch_RM" in machine 1
as a master and "NodeB" started with same cluster name "elasticsearch_RM"
in machine 2 as worker. Both are running in same network.

What setup I need to define in elasticsearch.yml file, so that worker
node auto-discover the master node? If possible, can you please share some
sample YML configuration.

Thanks & Regards,
Jonbon Dash

On Thursday, June 19, 2014 12:16:41 PM UTC+5:30, Kartavya wrote:

You can use different cluster name.

Thanks,
Pulkit Agrawal

Sent from my iPhone

On 19-Jun-2014, at 11:58 AM, JONBON DASH jonbo...@gmail.com wrote:

Good morning

Can anyone guide me how to setup 2 or more instances of ElasticSearch
Cluster on two different window server machine on same network?

Thanks & Regards,
Jonbon Dash

--
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 elasticsearc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/21430aa5-17aa-4aca-b97d-f1f63f6fb4fa%
40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/21430aa5-17aa-4aca-b97d-f1f63f6fb4fa%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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/c048ac6a-cde9-4917-8559-149db5f7da64%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/c048ac6a-cde9-4917-8559-149db5f7da64%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/4bxlrRX-ZbA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAEM624biJ85rKcaATgWnChsEPNConmoCcbdjGi-Qgq3NUQai8A%40mail.gmail.com
https://groups.google.com/d/msgid/elasticsearch/CAEM624biJ85rKcaATgWnChsEPNConmoCcbdjGi-Qgq3NUQai8A%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
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/CABk0ASnLxYdogV%3D__yXw-_-KpvpxZz8XMRU9kot_aq5%2BrPtGbw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #6