# Building a Cluster / Adding a node

**URL:** <https://discuss.elastic.co/t/building-a-cluster-adding-a-node/21836>\
**Category:** Elasticsearch\
**Created:** [January 26, 2015, 7:59pm UTC](https://discuss.elastic.co/t/building-a-cluster-adding-a-node/21836 "2015-01-26T19:59:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Garrett\_Johnson](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@Garrett\_Johnson](https://discuss.elastic.co/u/Garrett_Johnson)\
**Post date:** [January 26, 2015, 7:59pm UTC](https://discuss.elastic.co/t/building-a-cluster-adding-a-node/21836/1 "2015-01-26T19:59:53Z")

</div>

Is there a place where someone can point me to a simple set of instructions  
for adding a node to an Elastic Search cluster?

I think I understand Sharding and Nodes and that's what the documents do is  
talk about them.

But what I don't understand is...

How do install ElasticSearch on the second node.  
If I'm only able to have a two node cluster that will be both a failover  
and maybe some perf boost, how do I ensure that I've set all my settings  
correctly. (Looks like my rivers setup 4 shards). Are there any best  
practices etc

I've been googling my fingers off and no luck finding what i'm looking for.

If I copy the elastic search folder from one machine to another... how can  
i use that to make a replica.

Garrett

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [January 26, 2015, 8:06pm UTC](https://discuss.elastic.co/t/building-a-cluster-adding-a-node/21836/2 "2015-01-26T20:06:35Z")

</div>

Hey, it is as simple as running the first node. Just install ES, select a  
cluster name for the nodes, start it on the nodes, and let the node  
discovery join the nodes. I recommend odd numbers and at least 3 nodes to  
avoid a split brain.

Or did I miss something?

Jörg

On Mon, Jan 26, 2015 at 8:59 PM, GWired [garrettcjohnson@gmail.com](mailto:garrettcjohnson@gmail.com) wrote:

> Is there a place where someone can point me to a simple set of  
> instructions for adding a node to an Elastic Search cluster?
> 
> I think I understand Sharding and Nodes and that's what the documents do  
> is talk about them.
> 
> But what I don't understand is...
> 
> How do install Elasticsearch on the second node.  
> If I'm only able to have a two node cluster that will be both a failover  
> and maybe some perf boost, how do I ensure that I've set all my settings  
> correctly. (Looks like my rivers setup 4 shards). Are there any best  
> practices etc
> 
> I've been googling my fingers off and no luck finding what i'm looking for.
> 
> If I copy the Elasticsearch folder from one machine to another... how can  
> i use that to make a replica.
> 
> Garrett
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoH7wUMnOJJNKgSMwn0B\_RuAMQASrDOLVcRJrAH1\_jC\_qA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoH7wUMnOJJNKgSMwn0B_RuAMQASrDOLVcRJrAH1_jC_qA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Garrett\_Johnson](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@Garrett\_Johnson](https://discuss.elastic.co/u/Garrett_Johnson)\
**Post date:** [January 26, 2015, 8:34pm UTC](https://discuss.elastic.co/t/building-a-cluster-adding-a-node/21836/3 "2015-01-26T20:34:04Z")

</div>

I'm doing this in windows.

I'm crossing internal domains for each node so I thought I'd have to tell  
something somewhere that there is another node.

Also I probably want it configured the same way.

Also I don't see where I select a cluster name for the nodes.

With the single node install all I did was... .install and magic happened.  
I like magic.

I would love if it I just told ES this node to install onto the new node  
and it did all of that for me as long as I have drive letter access etc.

Garrett

On Monday, January 26, 2015 at 3:06:42 PM UTC-5, Jörg Prante wrote:

> Hey, it is as simple as running the first node. Just install ES, select a  
> cluster name for the nodes, start it on the nodes, and let the node  
> discovery join the nodes. I recommend odd numbers and at least 3 nodes to  
> avoid a split brain.
> 
> Or did I miss something?
> 
> Jörg
> 
> On Mon, Jan 26, 2015 at 8:59 PM, GWired \<[garrett...@gmail.com](mailto:garrett...@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > Is there a place where someone can point me to a simple set of  
> > instructions for adding a node to an Elastic Search cluster?
> > 
> > I think I understand Sharding and Nodes and that's what the documents do  
> > is talk about them.
> > 
> > But what I don't understand is...
> > 
> > How do install Elasticsearch on the second node.  
> > If I'm only able to have a two node cluster that will be both a failover  
> > and maybe some perf boost, how do I ensure that I've set all my settings  
> > correctly. (Looks like my rivers setup 4 shards). Are there any best  
> > practices etc
> > 
> > I've been googling my fingers off and no luck finding what i'm looking  
> > for.
> > 
> > If I copy the Elasticsearch folder from one machine to another... how  
> > can i use that to make a replica.
> > 
> > Garrett
> > 
> > --  
> > 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](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b9613301-3c7b-429c-ba02-752819254bef%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b9613301-3c7b-429c-ba02-752819254bef%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Garrett\_Johnson](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@Garrett\_Johnson](https://discuss.elastic.co/u/Garrett_Johnson)\
**Post date:** [January 26, 2015, 9:22pm UTC](https://discuss.elastic.co/t/building-a-cluster-adding-a-node/21836/4 "2015-01-26T21:22:57Z")

</div>

Ok so I looked at the config file and found this:

cluster.name - which you are saying I set it to the same on both  
machines... got it.

discovery.zen.ping.unicast.hosts: ["host1", "host2:port"] --- since I  
am not on the same network in this case they are in different but  
accessible domains (crossing DIT and SIT areas... don't get me started).  
do I put in the URL of the other engine into this in the elasticsearch for  
each one and point it to each other? Like so

First ES node  
discovery.zen.ping.unicast.hosts: ["[node2.dit.domain.com:9200](http://node2.dit.domain.com:9200)"]

Second ES node  
discovery.zen.ping.unicast.hosts: ["[node1.sit.domain.com:9200](http://node1.sit.domain.com:9200)"]

* * *

This leads me to other questions:

Do I have to install plugins on each node individually?

I'm assuming the data figures out how to get to the nodes on it's own.

I've seen properties in the [ElasticSearch.net](http://ElasticSearch.net) code that would allow me to  
do some kind of discovery for nodes as well in the event one is down.

On Monday, January 26, 2015 at 3:34:04 PM UTC-5, GWired wrote:

> I'm doing this in windows.
> 
> I'm crossing internal domains for each node so I thought I'd have to tell  
> something somewhere that there is another node.
> 
> Also I probably want it configured the same way.
> 
> Also I don't see where I select a cluster name for the nodes.
> 
> With the single node install all I did was... .install and magic  
> happened. I like magic.
> 
> I would love if it I just told ES this node to install onto the new node  
> and it did all of that for me as long as I have drive letter access etc.
> 
> Garrett
> 
> On Monday, January 26, 2015 at 3:06:42 PM UTC-5, Jörg Prante wrote:
> 
> > Hey, it is as simple as running the first node. Just install ES, select a  
> > cluster name for the nodes, start it on the nodes, and let the node  
> > discovery join the nodes. I recommend odd numbers and at least 3 nodes to  
> > avoid a split brain.
> > 
> > Or did I miss something?
> > 
> > Jörg
> > 
> > On Mon, Jan 26, 2015 at 8:59 PM, GWired [garrett...@gmail.com](mailto:garrett...@gmail.com) wrote:
> > 
> > > Is there a place where someone can point me to a simple set of  
> > > instructions for adding a node to an Elastic Search cluster?
> > > 
> > > I think I understand Sharding and Nodes and that's what the documents do  
> > > is talk about them.
> > > 
> > > But what I don't understand is...
> > > 
> > > How do install Elasticsearch on the second node.  
> > > If I'm only able to have a two node cluster that will be both a failover  
> > > and maybe some perf boost, how do I ensure that I've set all my settings  
> > > correctly. (Looks like my rivers setup 4 shards). Are there any best  
> > > practices etc
> > > 
> > > I've been googling my fingers off and no luck finding what i'm looking  
> > > for.
> > > 
> > > If I copy the Elasticsearch folder from one machine to another... how  
> > > can i use that to make a replica.
> > > 
> > > Garrett
> > > 
> > > --  
> > > 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](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 26, 2015, 10:42pm UTC](https://discuss.elastic.co/t/building-a-cluster-adding-a-node/21836/5 "2015-01-26T22:42:16Z")

</div>

If you just downloaded and started ES then your settings will be default  
ones.

Change cluster.name to something that isn't elasticsearch, and make sure it  
is the same on both nodes.  
Just list both hosts under discovery.zen.ping.unicast.hosts. Also make sure  
you disable multicast at the same time.

Plugins need to be installed on all nodes if you want to access them via  
any node, however some plugins need to be installed on all hosts  
regardless, so check the docs.

On 27 January 2015 at 08:22, GWired [garrettcjohnson@gmail.com](mailto:garrettcjohnson@gmail.com) wrote:

> Ok so I looked at the config file and found this:
> 
> cluster.name - which you are saying I set it to the same on both  
> machines... got it.
> 
> discovery.zen.ping.unicast.hosts: ["host1", "host2:port"] --- since I  
> am not on the same network in this case they are in different but  
> accessible domains (crossing DIT and SIT areas... don't get me started).  
> do I put in the URL of the other engine into this in the elasticsearch for  
> each one and point it to each other? Like so
> 
> First ES node  
> discovery.zen.ping.unicast.hosts: ["[node2.dit.domain.com:9200](http://node2.dit.domain.com:9200)"]
> 
> Second ES node  
> discovery.zen.ping.unicast.hosts: ["[node1.sit.domain.com:9200](http://node1.sit.domain.com:9200)"]
> 
> * * *
> 
> This leads me to other questions:
> 
> Do I have to install plugins on each node individually?
> 
> I'm assuming the data figures out how to get to the nodes on it's own.
> 
> I've seen properties in the [ElasticSearch.net](http://ElasticSearch.net) code that would allow me to  
> do some kind of discovery for nodes as well in the event one is down.
> 
> On Monday, January 26, 2015 at 3:34:04 PM UTC-5, GWired wrote:
> 
> > I'm doing this in windows.
> > 
> > I'm crossing internal domains for each node so I thought I'd have to tell  
> > something somewhere that there is another node.
> > 
> > Also I probably want it configured the same way.
> > 
> > Also I don't see where I select a cluster name for the nodes.
> > 
> > With the single node install all I did was... .install and magic  
> > happened. I like magic.
> > 
> > I would love if it I just told ES this node to install onto the new node  
> > and it did all of that for me as long as I have drive letter access etc.
> > 
> > Garrett
> > 
> > On Monday, January 26, 2015 at 3:06:42 PM UTC-5, Jörg Prante wrote:
> > 
> > > Hey, it is as simple as running the first node. Just install ES, select  
> > > a cluster name for the nodes, start it on the nodes, and let the node  
> > > discovery join the nodes. I recommend odd numbers and at least 3 nodes to  
> > > avoid a split brain.
> > > 
> > > Or did I miss something?
> > > 
> > > Jörg
> > > 
> > > On Mon, Jan 26, 2015 at 8:59 PM, GWired [garrett...@gmail.com](mailto:garrett...@gmail.com) wrote:
> > > 
> > > > Is there a place where someone can point me to a simple set of  
> > > > instructions for adding a node to an Elastic Search cluster?
> > > > 
> > > > I think I understand Sharding and Nodes and that's what the documents  
> > > > do is talk about them.
> > > > 
> > > > But what I don't understand is...
> > > > 
> > > > How do install Elasticsearch on the second node.  
> > > > If I'm only able to have a two node cluster that will be both a  
> > > > failover and maybe some perf boost, how do I ensure that I've set all my  
> > > > settings correctly. (Looks like my rivers setup 4 shards). Are there any  
> > > > best practices etc
> > > > 
> > > > I've been googling my fingers off and no luck finding what i'm looking  
> > > > for.
> > > > 
> > > > If I copy the Elasticsearch folder from one machine to another... how  
> > > > can i use that to make a replica.
> > > > 
> > > > Garrett
> > > > 
> > > > --  
> > > > 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](mailto:elasticsearc...@googlegroups.com).  
> > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%  
> > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .
> 
> For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8hES%2BXgpesmpcU9CD6Beu8V%2BWfrHt-\_%2BM\_vZxxs%3Dfz4Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8hES%2BXgpesmpcU9CD6Beu8V%2BWfrHt-_%2BM_vZxxs%3Dfz4Q%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Garrett\_Johnson](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@Garrett\_Johnson](https://discuss.elastic.co/u/Garrett_Johnson)\
**Post date:** [January 29, 2015, 3:56am UTC](https://discuss.elastic.co/t/building-a-cluster-adding-a-node/21836/6 "2015-01-29T03:56:11Z")

</div>

On my initial host (host1) I changed my cluster.name to

cluster.name: ESMyName

Which in elasticsearchhead it is showing as the new name.

I also uncommented::

discovery.zen.ping.multicast.enabled: false

And added

discovery.zen.ping.unicast.hosts: ["[host2.mydomain.com:9200](http://host2.mydomain.com:9200)"]

on the new node I did the same

discovery.zen.ping.unicast.hosts: ["[host1.mydomain.com:9200](http://host1.mydomain.com:9200)"]

On host1 ESHead says... cluster heath: yellow (24 of 48)  
On host2 ESHead says... clusert heath: yellow (1 of 2)

I see no way to tell that they are attached or that they know about each  
other.

The name of the other node isn't showing up in either version of the head.

On Monday, January 26, 2015 at 5:42:44 PM UTC-5, Mark Walkom wrote:

> If you just downloaded and started ES then your settings will be default  
> ones.
> 
> Change cluster.name to something that isn't elasticsearch, and make sure  
> it is the same on both nodes.  
> Just list both hosts under discovery.zen.ping.unicast.hosts. Also make  
> sure you disable multicast at the same time.
> 
> Plugins need to be installed on all nodes if you want to access them via  
> any node, however some plugins need to be installed on all hosts  
> regardless, so check the docs.
> 
> On 27 January 2015 at 08:22, GWired \<[garrett...@gmail.com](mailto:garrett...@gmail.com) \<javascript:\>\>  
> wrote:
> 
> > Ok so I looked at the config file and found this:
> > 
> > cluster.name - which you are saying I set it to the same on both  
> > machines... got it.
> > 
> > discovery.zen.ping.unicast.hosts: ["host1", "host2:port"] --- since I  
> > am not on the same network in this case they are in different but  
> > accessible domains (crossing DIT and SIT areas... don't get me started).  
> > do I put in the URL of the other engine into this in the elasticsearch for  
> > each one and point it to each other? Like so
> > 
> > First ES node  
> > discovery.zen.ping.unicast.hosts: ["[node2.dit.domain.com:9200](http://node2.dit.domain.com:9200)"]
> > 
> > Second ES node  
> > discovery.zen.ping.unicast.hosts: ["[node1.sit.domain.com:9200](http://node1.sit.domain.com:9200)"]
> > 
> > * * *
> > 
> > This leads me to other questions:
> > 
> > Do I have to install plugins on each node individually?
> > 
> > I'm assuming the data figures out how to get to the nodes on it's own.
> > 
> > I've seen properties in the [ElasticSearch.net](http://ElasticSearch.net) code that would allow me to  
> > do some kind of discovery for nodes as well in the event one is down.
> > 
> > On Monday, January 26, 2015 at 3:34:04 PM UTC-5, GWired wrote:
> > 
> > > I'm doing this in windows.
> > > 
> > > I'm crossing internal domains for each node so I thought I'd have to  
> > > tell something somewhere that there is another node.
> > > 
> > > Also I probably want it configured the same way.
> > > 
> > > Also I don't see where I select a cluster name for the nodes.
> > > 
> > > With the single node install all I did was... .install and magic  
> > > happened. I like magic.
> > > 
> > > I would love if it I just told ES this node to install onto the new node  
> > > and it did all of that for me as long as I have drive letter access etc.
> > > 
> > > Garrett
> > > 
> > > On Monday, January 26, 2015 at 3:06:42 PM UTC-5, Jörg Prante wrote:
> > > 
> > > > Hey, it is as simple as running the first node. Just install ES, select  
> > > > a cluster name for the nodes, start it on the nodes, and let the node  
> > > > discovery join the nodes. I recommend odd numbers and at least 3 nodes to  
> > > > avoid a split brain.
> > > > 
> > > > Or did I miss something?
> > > > 
> > > > Jörg
> > > > 
> > > > On Mon, Jan 26, 2015 at 8:59 PM, GWired [garrett...@gmail.com](mailto:garrett...@gmail.com) wrote:
> > > > 
> > > > > Is there a place where someone can point me to a simple set of  
> > > > > instructions for adding a node to an Elastic Search cluster?
> > > > > 
> > > > > I think I understand Sharding and Nodes and that's what the documents  
> > > > > do is talk about them.
> > > > > 
> > > > > But what I don't understand is...
> > > > > 
> > > > > How do install Elasticsearch on the second node.  
> > > > > If I'm only able to have a two node cluster that will be both a  
> > > > > failover and maybe some perf boost, how do I ensure that I've set all my  
> > > > > settings correctly. (Looks like my rivers setup 4 shards). Are there any  
> > > > > best practices etc
> > > > > 
> > > > > I've been googling my fingers off and no luck finding what i'm looking  
> > > > > for.
> > > > > 
> > > > > If I copy the Elasticsearch folder from one machine to another... how  
> > > > > can i use that to make a replica.
> > > > > 
> > > > > Garrett
> > > > > 
> > > > > --  
> > > > > 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](mailto:elasticsearc...@googlegroups.com).  
> > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%  
> > > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > .  
> > > > > For more options, visit [https://groups.google.com/d/optout](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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0690924e-d06e-4a94-8f00-58821945aca2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0690924e-d06e-4a94-8f00-58821945aca2%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 29, 2015, 9:48pm UTC](https://discuss.elastic.co/t/building-a-cluster-adding-a-node/21836/7 "2015-01-29T21:48:59Z")

</div>

Then your nodes have not joined together.

Can you gist/pastebin/etc your configs so we can check them?

On 29 January 2015 at 14:56, GWired [garrettcjohnson@gmail.com](mailto:garrettcjohnson@gmail.com) wrote:

> On my initial host (host1) I changed my cluster.name to
> 
> cluster.name: ESMyName
> 
> Which in elasticsearchhead it is showing as the new name.
> 
> I also uncommented::
> 
> discovery.zen.ping.multicast.enabled: false
> 
> And added
> 
> discovery.zen.ping.unicast.hosts: ["[host2.mydomain.com:9200](http://host2.mydomain.com:9200)"]
> 
> on the new node I did the same
> 
> discovery.zen.ping.unicast.hosts: ["[host1.mydomain.com:9200](http://host1.mydomain.com:9200)"]
> 
> On host1 ESHead says... cluster heath: yellow (24 of 48)  
> On host2 ESHead says... clusert heath: yellow (1 of 2)
> 
> I see no way to tell that they are attached or that they know about each  
> other.
> 
> The name of the other node isn't showing up in either version of the head.
> 
> On Monday, January 26, 2015 at 5:42:44 PM UTC-5, Mark Walkom wrote:
> 
> > If you just downloaded and started ES then your settings will be default  
> > ones.
> > 
> > Change cluster.name to something that isn't elasticsearch, and make sure  
> > it is the same on both nodes.  
> > Just list both hosts under discovery.zen.ping.unicast.hosts. Also make  
> > sure you disable multicast at the same time.
> > 
> > Plugins need to be installed on all nodes if you want to access them via  
> > any node, however some plugins need to be installed on all hosts  
> > regardless, so check the docs.
> > 
> > On 27 January 2015 at 08:22, GWired [garrett...@gmail.com](mailto:garrett...@gmail.com) wrote:
> > 
> > > Ok so I looked at the config file and found this:
> > > 
> > > cluster.name - which you are saying I set it to the same on both  
> > > machines... got it.
> > > 
> > > discovery.zen.ping.unicast.hosts: ["host1", "host2:port"] --- since  
> > > I am not on the same network in this case they are in different but  
> > > accessible domains (crossing DIT and SIT areas... don't get me started).  
> > > do I put in the URL of the other engine into this in the elasticsearch for  
> > > each one and point it to each other? Like so
> > > 
> > > First ES node  
> > > discovery.zen.ping.unicast.hosts: ["[node2.dit.domain.com:9200](http://node2.dit.domain.com:9200)"]
> > > 
> > > Second ES node  
> > > discovery.zen.ping.unicast.hosts: ["[node1.sit.domain.com:9200](http://node1.sit.domain.com:9200)"]
> > > 
> > > * * *
> > > 
> > > This leads me to other questions:
> > > 
> > > Do I have to install plugins on each node individually?
> > > 
> > > I'm assuming the data figures out how to get to the nodes on it's own.
> > > 
> > > I've seen properties in the [ElasticSearch.net](http://ElasticSearch.net) code that would allow me  
> > > to do some kind of discovery for nodes as well in the event one is down.
> > > 
> > > On Monday, January 26, 2015 at 3:34:04 PM UTC-5, GWired wrote:
> > > 
> > > > I'm doing this in windows.
> > > > 
> > > > I'm crossing internal domains for each node so I thought I'd have to  
> > > > tell something somewhere that there is another node.
> > > > 
> > > > Also I probably want it configured the same way.
> > > > 
> > > > Also I don't see where I select a cluster name for the nodes.
> > > > 
> > > > With the single node install all I did was... .install and magic  
> > > > happened. I like magic.
> > > > 
> > > > I would love if it I just told ES this node to install onto the new  
> > > > node and it did all of that for me as long as I have drive letter access  
> > > > etc.
> > > > 
> > > > Garrett
> > > > 
> > > > On Monday, January 26, 2015 at 3:06:42 PM UTC-5, Jörg Prante wrote:
> > > > 
> > > > > Hey, it is as simple as running the first node. Just install ES,  
> > > > > select a cluster name for the nodes, start it on the nodes, and let the  
> > > > > node discovery join the nodes. I recommend odd numbers and at least 3  
> > > > > nodes to avoid a split brain.
> > > > > 
> > > > > Or did I miss something?
> > > > > 
> > > > > Jörg
> > > > > 
> > > > > On Mon, Jan 26, 2015 at 8:59 PM, GWired [garrett...@gmail.com](mailto:garrett...@gmail.com) wrote:
> > > > > 
> > > > > > Is there a place where someone can point me to a simple set of  
> > > > > > instructions for adding a node to an Elastic Search cluster?
> > > > > > 
> > > > > > I think I understand Sharding and Nodes and that's what the documents  
> > > > > > do is talk about them.
> > > > > > 
> > > > > > But what I don't understand is...
> > > > > > 
> > > > > > How do install Elasticsearch on the second node.  
> > > > > > If I'm only able to have a two node cluster that will be both a  
> > > > > > failover and maybe some perf boost, how do I ensure that I've set all my  
> > > > > > settings correctly. (Looks like my rivers setup 4 shards). Are there any  
> > > > > > best practices etc
> > > > > > 
> > > > > > I've been googling my fingers off and no luck finding what i'm  
> > > > > > looking for.
> > > > > > 
> > > > > > If I copy the Elasticsearch folder from one machine to another...  
> > > > > > how can i use that to make a replica.
> > > > > > 
> > > > > > Garrett
> > > > > > 
> > > > > > --  
> > > > > > 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](mailto:elasticsearc...@googlegroups.com).  
> > > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > > msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40goo  
> > > > > > [glegroups.com](http://glegroups.com)  
> > > > > > [https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > .  
> > > > > > For more options, visit [https://groups.google.com/d/optout](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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%  
> > > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/0690924e-d06e-4a94-8f00-58821945aca2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0690924e-d06e-4a94-8f00-58821945aca2%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/0690924e-d06e-4a94-8f00-58821945aca2%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0690924e-d06e-4a94-8f00-58821945aca2%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8f-j3-vA7hkhX2qdo2C%3DnFhTDdQaSBhpzr%3Du5s2%3DEggA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8f-j3-vA7hkhX2qdo2C%3DnFhTDdQaSBhpzr%3Du5s2%3DEggA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Garrett\_Johnson](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@Garrett\_Johnson](https://discuss.elastic.co/u/Garrett_Johnson)\
**Post date:** [January 30, 2015, 2:07am UTC](https://discuss.elastic.co/t/building-a-cluster-adding-a-node/21836/8 "2015-01-30T02:07:37Z")

</div>

host1 elasticsearch.yml

> <https://gist.github.com/anonymous/1db14fe7fcd93013defc>

Host2 elasticsearch.yml:

> <https://gist.github.com/anonymous/b4ac49f2a2a559204632>

On Thursday, January 29, 2015 at 4:49:33 PM UTC-5, Mark Walkom wrote:

> Then your nodes have not joined together.
> 
> Can you gist/pastebin/etc your configs so we can check them?
> 
> On 29 January 2015 at 14:56, GWired \<[garrett...@gmail.com](mailto:garrett...@gmail.com) \<javascript:\>\>  
> wrote:
> 
> > On my initial host (host1) I changed my cluster.name to
> > 
> > cluster.name: ESMyName
> > 
> > Which in elasticsearchhead it is showing as the new name.
> > 
> > I also uncommented::
> > 
> > discovery.zen.ping.multicast.enabled: false
> > 
> > And added
> > 
> > discovery.zen.ping.unicast.hosts: ["[host2.mydomain.com:9200](http://host2.mydomain.com:9200)"]
> > 
> > on the new node I did the same
> > 
> > discovery.zen.ping.unicast.hosts: ["[host1.mydomain.com:9200](http://host1.mydomain.com:9200)"]
> > 
> > On host1 ESHead says... cluster heath: yellow (24 of 48)  
> > On host2 ESHead says... clusert heath: yellow (1 of 2)
> > 
> > I see no way to tell that they are attached or that they know about each  
> > other.
> > 
> > The name of the other node isn't showing up in either version of the head.
> > 
> > On Monday, January 26, 2015 at 5:42:44 PM UTC-5, Mark Walkom wrote:
> > 
> > > If you just downloaded and started ES then your settings will be default  
> > > ones.
> > > 
> > > Change cluster.name to something that isn't elasticsearch, and make  
> > > sure it is the same on both nodes.  
> > > Just list both hosts under discovery.zen.ping.unicast.hosts. Also make  
> > > sure you disable multicast at the same time.
> > > 
> > > Plugins need to be installed on all nodes if you want to access them via  
> > > any node, however some plugins need to be installed on all hosts  
> > > regardless, so check the docs.
> > > 
> > > On 27 January 2015 at 08:22, GWired [garrett...@gmail.com](mailto:garrett...@gmail.com) wrote:
> > > 
> > > > Ok so I looked at the config file and found this:
> > > > 
> > > > cluster.name - which you are saying I set it to the same on both  
> > > > machines... got it.
> > > > 
> > > > discovery.zen.ping.unicast.hosts: ["host1", "host2:port"] ---  
> > > > since I am not on the same network in this case they are in different but  
> > > > accessible domains (crossing DIT and SIT areas... don't get me started).  
> > > > do I put in the URL of the other engine into this in the elasticsearch for  
> > > > each one and point it to each other? Like so
> > > > 
> > > > First ES node  
> > > > discovery.zen.ping.unicast.hosts: ["[node2.dit.domain.com:9200](http://node2.dit.domain.com:9200)"]
> > > > 
> > > > Second ES node  
> > > > discovery.zen.ping.unicast.hosts: ["[node1.sit.domain.com:9200](http://node1.sit.domain.com:9200)"]
> > > > 
> > > > * * *
> > > > 
> > > > This leads me to other questions:
> > > > 
> > > > Do I have to install plugins on each node individually?
> > > > 
> > > > I'm assuming the data figures out how to get to the nodes on it's own.
> > > > 
> > > > I've seen properties in the [ElasticSearch.net](http://ElasticSearch.net) code that would allow me  
> > > > to do some kind of discovery for nodes as well in the event one is down.
> > > > 
> > > > On Monday, January 26, 2015 at 3:34:04 PM UTC-5, GWired wrote:
> > > > 
> > > > > I'm doing this in windows.
> > > > > 
> > > > > I'm crossing internal domains for each node so I thought I'd have to  
> > > > > tell something somewhere that there is another node.
> > > > > 
> > > > > Also I probably want it configured the same way.
> > > > > 
> > > > > Also I don't see where I select a cluster name for the nodes.
> > > > > 
> > > > > With the single node install all I did was... .install and magic  
> > > > > happened. I like magic.
> > > > > 
> > > > > I would love if it I just told ES this node to install onto the new  
> > > > > node and it did all of that for me as long as I have drive letter access  
> > > > > etc.
> > > > > 
> > > > > Garrett
> > > > > 
> > > > > On Monday, January 26, 2015 at 3:06:42 PM UTC-5, Jörg Prante wrote:
> > > > > 
> > > > > > Hey, it is as simple as running the first node. Just install ES,  
> > > > > > select a cluster name for the nodes, start it on the nodes, and let the  
> > > > > > node discovery join the nodes. I recommend odd numbers and at least 3  
> > > > > > nodes to avoid a split brain.
> > > > > > 
> > > > > > Or did I miss something?
> > > > > > 
> > > > > > Jörg
> > > > > > 
> > > > > > On Mon, Jan 26, 2015 at 8:59 PM, GWired [garrett...@gmail.com](mailto:garrett...@gmail.com) wrote:
> > > > > > 
> > > > > > > Is there a place where someone can point me to a simple set of  
> > > > > > > instructions for adding a node to an Elastic Search cluster?
> > > > > > > 
> > > > > > > I think I understand Sharding and Nodes and that's what the  
> > > > > > > documents do is talk about them.
> > > > > > > 
> > > > > > > But what I don't understand is...
> > > > > > > 
> > > > > > > How do install Elasticsearch on the second node.  
> > > > > > > If I'm only able to have a two node cluster that will be both a  
> > > > > > > failover and maybe some perf boost, how do I ensure that I've set all my  
> > > > > > > settings correctly. (Looks like my rivers setup 4 shards). Are there any  
> > > > > > > best practices etc
> > > > > > > 
> > > > > > > I've been googling my fingers off and no luck finding what i'm  
> > > > > > > looking for.
> > > > > > > 
> > > > > > > If I copy the Elasticsearch folder from one machine to another...  
> > > > > > > how can i use that to make a replica.
> > > > > > > 
> > > > > > > Garrett
> > > > > > > 
> > > > > > > --  
> > > > > > > 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](mailto:elasticsearc...@googlegroups.com).  
> > > > > > > To view this discussion on the web visit  
> > > > > > > [https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764](https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764)  
> > > > > > > a-4164-ab02-475b88b1620f%[40googlegroups.com](http://40googlegroups.com)  
> > > > > > > [https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > > .  
> > > > > > > For more options, visit [https://groups.google.com/d/optout](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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > > msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%  
> > > > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > > > [https://groups.google.com/d/msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > .
> > > > 
> > > > For more options, visit [https://groups.google.com/d/optout](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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/0690924e-d06e-4a94-8f00-58821945aca2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0690924e-d06e-4a94-8f00-58821945aca2%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/0690924e-d06e-4a94-8f00-58821945aca2%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0690924e-d06e-4a94-8f00-58821945aca2%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6d2fdee5-d7c6-4ae6-b96f-2e3882acdc40%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6d2fdee5-d7c6-4ae6-b96f-2e3882acdc40%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Garrett\_Johnson](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@Garrett\_Johnson](https://discuss.elastic.co/u/Garrett_Johnson)\
**Post date:** [January 30, 2015, 3:09am UTC](https://discuss.elastic.co/t/building-a-cluster-adding-a-node/21836/9 "2015-01-30T03:09:45Z")

</div>

I've been messing with things on Host2 and it will no longer Start as a  
service but when Iaunch it as myself logged in it does this...

[2015-01-29 20:44:54,480][INFO][transport] [Cat]  
bound\_address  
{inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address {inet[/10.160.129.57:9300]}  
[2015-01-29 20:44:54,530][INFO][discovery] [Cat]  
ESMyName/efU  
1z15ERPCS3qOVb5posA  
[2015-01-29 20:44:57,590][INFO][cluster.service] [Cat]  
new\_master [Ca  
t][efU1z15ERPCS3qOVb5posA][HOST2][inet[/10.160.129.57:9300]], reason:  
zen-disco-join (elected\_as\_master)  
[2015-01-29 20:44:57,804][INFO][http] [Cat]  
bound\_address  
{inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address {inet[/10.160.129.57:9200]}  
[2015-01-29 20:44:57,805][INFO][node] [Cat] started

On Thursday, January 29, 2015 at 9:07:37 PM UTC-5, GWired wrote:

> host1 elasticsearch.yml  
> [gist:1db14fe7fcd93013defc · GitHub](https://gist.github.com/anonymous/1db14fe7fcd93013defc)
> 
> Host2 elasticsearch.yml:  
> [ES-Host2 · GitHub](https://gist.github.com/anonymous/b4ac49f2a2a559204632)
> 
> On Thursday, January 29, 2015 at 4:49:33 PM UTC-5, Mark Walkom wrote:
> 
> > Then your nodes have not joined together.
> > 
> > Can you gist/pastebin/etc your configs so we can check them?
> > 
> > On 29 January 2015 at 14:56, GWired [garrett...@gmail.com](mailto:garrett...@gmail.com) wrote:
> > 
> > > On my initial host (host1) I changed my cluster.name to
> > > 
> > > cluster.name: ESMyName
> > > 
> > > Which in elasticsearchhead it is showing as the new name.
> > > 
> > > I also uncommented::
> > > 
> > > discovery.zen.ping.multicast.enabled: false
> > > 
> > > And added
> > > 
> > > discovery.zen.ping.unicast.hosts: ["[host2.mydomain.com:9200](http://host2.mydomain.com:9200)"]
> > > 
> > > on the new node I did the same
> > > 
> > > discovery.zen.ping.unicast.hosts: ["[host1.mydomain.com:9200](http://host1.mydomain.com:9200)"]
> > > 
> > > On host1 ESHead says... cluster heath: yellow (24 of 48)  
> > > On host2 ESHead says... clusert heath: yellow (1 of 2)
> > > 
> > > I see no way to tell that they are attached or that they know about each  
> > > other.
> > > 
> > > The name of the other node isn't showing up in either version of the  
> > > head.
> > > 
> > > On Monday, January 26, 2015 at 5:42:44 PM UTC-5, Mark Walkom wrote:
> > > 
> > > > If you just downloaded and started ES then your settings will be  
> > > > default ones.
> > > > 
> > > > Change cluster.name to something that isn't elasticsearch, and make  
> > > > sure it is the same on both nodes.  
> > > > Just list both hosts under discovery.zen.ping.unicast.hosts. Also make  
> > > > sure you disable multicast at the same time.
> > > > 
> > > > Plugins need to be installed on all nodes if you want to access them  
> > > > via any node, however some plugins need to be installed on all hosts  
> > > > regardless, so check the docs.
> > > > 
> > > > On 27 January 2015 at 08:22, GWired [garrett...@gmail.com](mailto:garrett...@gmail.com) wrote:
> > > > 
> > > > > Ok so I looked at the config file and found this:
> > > > > 
> > > > > cluster.name - which you are saying I set it to the same on both  
> > > > > machines... got it.
> > > > > 
> > > > > discovery.zen.ping.unicast.hosts: ["host1", "host2:port"] ---  
> > > > > since I am not on the same network in this case they are in different but  
> > > > > accessible domains (crossing DIT and SIT areas... don't get me started).  
> > > > > do I put in the URL of the other engine into this in the elasticsearch for  
> > > > > each one and point it to each other? Like so
> > > > > 
> > > > > First ES node  
> > > > > discovery.zen.ping.unicast.hosts: ["[node2.dit.domain.com:9200](http://node2.dit.domain.com:9200)"]
> > > > > 
> > > > > Second ES node  
> > > > > discovery.zen.ping.unicast.hosts: ["[node1.sit.domain.com:9200](http://node1.sit.domain.com:9200)"]
> > > > > 
> > > > > * * *
> > > > > 
> > > > > This leads me to other questions:
> > > > > 
> > > > > Do I have to install plugins on each node individually?
> > > > > 
> > > > > I'm assuming the data figures out how to get to the nodes on it's  
> > > > > own.
> > > > > 
> > > > > I've seen properties in the [ElasticSearch.net](http://ElasticSearch.net) code that would allow me  
> > > > > to do some kind of discovery for nodes as well in the event one is down.
> > > > > 
> > > > > On Monday, January 26, 2015 at 3:34:04 PM UTC-5, GWired wrote:
> > > > > 
> > > > > > I'm doing this in windows.
> > > > > > 
> > > > > > I'm crossing internal domains for each node so I thought I'd have to  
> > > > > > tell something somewhere that there is another node.
> > > > > > 
> > > > > > Also I probably want it configured the same way.
> > > > > > 
> > > > > > Also I don't see where I select a cluster name for the nodes.
> > > > > > 
> > > > > > With the single node install all I did was... .install and magic  
> > > > > > happened. I like magic.
> > > > > > 
> > > > > > I would love if it I just told ES this node to install onto the new  
> > > > > > node and it did all of that for me as long as I have drive letter access  
> > > > > > etc.
> > > > > > 
> > > > > > Garrett
> > > > > > 
> > > > > > On Monday, January 26, 2015 at 3:06:42 PM UTC-5, Jörg Prante wrote:
> > > > > > 
> > > > > > > Hey, it is as simple as running the first node. Just install ES,  
> > > > > > > select a cluster name for the nodes, start it on the nodes, and let the  
> > > > > > > node discovery join the nodes. I recommend odd numbers and at least 3  
> > > > > > > nodes to avoid a split brain.
> > > > > > > 
> > > > > > > Or did I miss something?
> > > > > > > 
> > > > > > > Jörg
> > > > > > > 
> > > > > > > On Mon, Jan 26, 2015 at 8:59 PM, GWired [garrett...@gmail.com](mailto:garrett...@gmail.com)  
> > > > > > > wrote:
> > > > > > > 
> > > > > > > > Is there a place where someone can point me to a simple set of  
> > > > > > > > instructions for adding a node to an Elastic Search cluster?
> > > > > > > > 
> > > > > > > > I think I understand Sharding and Nodes and that's what the  
> > > > > > > > documents do is talk about them.
> > > > > > > > 
> > > > > > > > But what I don't understand is...
> > > > > > > > 
> > > > > > > > How do install Elasticsearch on the second node.  
> > > > > > > > If I'm only able to have a two node cluster that will be both a  
> > > > > > > > failover and maybe some perf boost, how do I ensure that I've set all my  
> > > > > > > > settings correctly. (Looks like my rivers setup 4 shards). Are there any  
> > > > > > > > best practices etc
> > > > > > > > 
> > > > > > > > I've been googling my fingers off and no luck finding what i'm  
> > > > > > > > looking for.
> > > > > > > > 
> > > > > > > > If I copy the Elasticsearch folder from one machine to another...  
> > > > > > > > how can i use that to make a replica.
> > > > > > > > 
> > > > > > > > Garrett
> > > > > > > > 
> > > > > > > > --  
> > > > > > > > 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](mailto:elasticsearc...@googlegroups.com).  
> > > > > > > > To view this discussion on the web visit  
> > > > > > > > [https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764](https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764)  
> > > > > > > > a-4164-ab02-475b88b1620f%[40googlegroups.com](http://40googlegroups.com)  
> > > > > > > > [https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > > > .  
> > > > > > > > For more options, visit [https://groups.google.com/d/optout](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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > > > msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%  
> > > > > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > > > > [https://groups.google.com/d/msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > > .
> > > > > 
> > > > > For more options, visit [https://groups.google.com/d/optout](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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/0690924e-d06e-4a94-8f00-58821945aca2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0690924e-d06e-4a94-8f00-58821945aca2%40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/0690924e-d06e-4a94-8f00-58821945aca2%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0690924e-d06e-4a94-8f00-58821945aca2%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/fd89e905-7fea-4672-9579-52f3a915e966%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fd89e905-7fea-4672-9579-52f3a915e966%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Garrett\_Johnson](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@Garrett\_Johnson](https://discuss.elastic.co/u/Garrett_Johnson)\
**Post date:** [January 30, 2015, 3:35am UTC](https://discuss.elastic.co/t/building-a-cluster-adding-a-node/21836/10 "2015-01-30T03:35:57Z")

</div>

Got it going as a service... ugh.. the user I was using didn't have rights  
to run a service. Had to do it in the services.msc instead of service  
manager.

On Thursday, January 29, 2015 at 10:09:46 PM UTC-5, GWired wrote:

> I've been messing with things on Host2 and it will no longer Start as a  
> service but when Iaunch it as myself logged in it does this...
> 
> [2015-01-29 20:44:54,480][INFO][transport] [Cat]  
> bound\_address  
> {inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address {inet[/10.160.129.57:9300]}  
> [2015-01-29 20:44:54,530][INFO][discovery] [Cat]  
> ESMyName/efU  
> 1z15ERPCS3qOVb5posA  
> [2015-01-29 20:44:57,590][INFO][cluster.service] [Cat]  
> new\_master [Ca  
> t][efU1z15ERPCS3qOVb5posA][HOST2][inet[/10.160.129.57:9300]], reason:  
> zen-disco-join (elected\_as\_master)  
> [2015-01-29 20:44:57,804][INFO][http] [Cat]  
> bound\_address  
> {inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address {inet[/10.160.129.57:9200]}  
> [2015-01-29 20:44:57,805][INFO][node] [Cat] started
> 
> On Thursday, January 29, 2015 at 9:07:37 PM UTC-5, GWired wrote:
> 
> > host1 elasticsearch.yml  
> > [gist:1db14fe7fcd93013defc · GitHub](https://gist.github.com/anonymous/1db14fe7fcd93013defc)
> > 
> > Host2 elasticsearch.yml:  
> > [ES-Host2 · GitHub](https://gist.github.com/anonymous/b4ac49f2a2a559204632)
> > 
> > On Thursday, January 29, 2015 at 4:49:33 PM UTC-5, Mark Walkom wrote:
> > 
> > > Then your nodes have not joined together.
> > > 
> > > Can you gist/pastebin/etc your configs so we can check them?
> > > 
> > > On 29 January 2015 at 14:56, GWired [garrett...@gmail.com](mailto:garrett...@gmail.com) wrote:
> > > 
> > > > On my initial host (host1) I changed my cluster.name to
> > > > 
> > > > cluster.name: ESMyName
> > > > 
> > > > Which in elasticsearchhead it is showing as the new name.
> > > > 
> > > > I also uncommented::
> > > > 
> > > > discovery.zen.ping.multicast.enabled: false
> > > > 
> > > > And added
> > > > 
> > > > discovery.zen.ping.unicast.hosts: ["[host2.mydomain.com:9200](http://host2.mydomain.com:9200)"]
> > > > 
> > > > on the new node I did the same
> > > > 
> > > > discovery.zen.ping.unicast.hosts: ["[host1.mydomain.com:9200](http://host1.mydomain.com:9200)"]
> > > > 
> > > > On host1 ESHead says... cluster heath: yellow (24 of 48)  
> > > > On host2 ESHead says... clusert heath: yellow (1 of 2)
> > > > 
> > > > I see no way to tell that they are attached or that they know about  
> > > > each other.
> > > > 
> > > > The name of the other node isn't showing up in either version of the  
> > > > head.
> > > > 
> > > > On Monday, January 26, 2015 at 5:42:44 PM UTC-5, Mark Walkom wrote:
> > > > 
> > > > > If you just downloaded and started ES then your settings will be  
> > > > > default ones.
> > > > > 
> > > > > Change cluster.name to something that isn't elasticsearch, and make  
> > > > > sure it is the same on both nodes.  
> > > > > Just list both hosts under discovery.zen.ping.unicast.hosts. Also  
> > > > > make sure you disable multicast at the same time.
> > > > > 
> > > > > Plugins need to be installed on all nodes if you want to access them  
> > > > > via any node, however some plugins need to be installed on all hosts  
> > > > > regardless, so check the docs.
> > > > > 
> > > > > On 27 January 2015 at 08:22, GWired [garrett...@gmail.com](mailto:garrett...@gmail.com) wrote:
> > > > > 
> > > > > > Ok so I looked at the config file and found this:
> > > > > > 
> > > > > > cluster.name - which you are saying I set it to the same on both  
> > > > > > machines... got it.
> > > > > > 
> > > > > > discovery.zen.ping.unicast.hosts: ["host1", "host2:port"] ---  
> > > > > > since I am not on the same network in this case they are in different but  
> > > > > > accessible domains (crossing DIT and SIT areas... don't get me started).  
> > > > > > do I put in the URL of the other engine into this in the elasticsearch for  
> > > > > > each one and point it to each other? Like so
> > > > > > 
> > > > > > First ES node  
> > > > > > discovery.zen.ping.unicast.hosts: ["[node2.dit.domain.com:9200](http://node2.dit.domain.com:9200)"]
> > > > > > 
> > > > > > Second ES node  
> > > > > > discovery.zen.ping.unicast.hosts: ["[node1.sit.domain.com:9200](http://node1.sit.domain.com:9200)"]
> > > > > > 
> > > > > > * * *
> > > > > > 
> > > > > > This leads me to other questions:
> > > > > > 
> > > > > > Do I have to install plugins on each node individually?
> > > > > > 
> > > > > > I'm assuming the data figures out how to get to the nodes on it's  
> > > > > > own.
> > > > > > 
> > > > > > I've seen properties in the [ElasticSearch.net](http://ElasticSearch.net) code that would allow  
> > > > > > me to do some kind of discovery for nodes as well in the event one is down.
> > > > > > 
> > > > > > On Monday, January 26, 2015 at 3:34:04 PM UTC-5, GWired wrote:
> > > > > > 
> > > > > > > I'm doing this in windows.
> > > > > > > 
> > > > > > > I'm crossing internal domains for each node so I thought I'd have to  
> > > > > > > tell something somewhere that there is another node.
> > > > > > > 
> > > > > > > Also I probably want it configured the same way.
> > > > > > > 
> > > > > > > Also I don't see where I select a cluster name for the nodes.
> > > > > > > 
> > > > > > > With the single node install all I did was... .install and magic  
> > > > > > > happened. I like magic.
> > > > > > > 
> > > > > > > I would love if it I just told ES this node to install onto the new  
> > > > > > > node and it did all of that for me as long as I have drive letter access  
> > > > > > > etc.
> > > > > > > 
> > > > > > > Garrett
> > > > > > > 
> > > > > > > On Monday, January 26, 2015 at 3:06:42 PM UTC-5, Jörg Prante wrote:
> > > > > > > 
> > > > > > > > Hey, it is as simple as running the first node. Just install ES,  
> > > > > > > > select a cluster name for the nodes, start it on the nodes, and let the  
> > > > > > > > node discovery join the nodes. I recommend odd numbers and at least 3  
> > > > > > > > nodes to avoid a split brain.
> > > > > > > > 
> > > > > > > > Or did I miss something?
> > > > > > > > 
> > > > > > > > Jörg
> > > > > > > > 
> > > > > > > > On Mon, Jan 26, 2015 at 8:59 PM, GWired [garrett...@gmail.com](mailto:garrett...@gmail.com)  
> > > > > > > > wrote:
> > > > > > > > 
> > > > > > > > > Is there a place where someone can point me to a simple set of  
> > > > > > > > > instructions for adding a node to an Elastic Search cluster?
> > > > > > > > > 
> > > > > > > > > I think I understand Sharding and Nodes and that's what the  
> > > > > > > > > documents do is talk about them.
> > > > > > > > > 
> > > > > > > > > But what I don't understand is...
> > > > > > > > > 
> > > > > > > > > How do install Elasticsearch on the second node.  
> > > > > > > > > If I'm only able to have a two node cluster that will be both a  
> > > > > > > > > failover and maybe some perf boost, how do I ensure that I've set all my  
> > > > > > > > > settings correctly. (Looks like my rivers setup 4 shards). Are there any  
> > > > > > > > > best practices etc
> > > > > > > > > 
> > > > > > > > > I've been googling my fingers off and no luck finding what i'm  
> > > > > > > > > looking for.
> > > > > > > > > 
> > > > > > > > > If I copy the Elasticsearch folder from one machine to another...  
> > > > > > > > > how can i use that to make a replica.
> > > > > > > > > 
> > > > > > > > > Garrett
> > > > > > > > > 
> > > > > > > > > --  
> > > > > > > > > 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](mailto:elasticsearc...@googlegroups.com).  
> > > > > > > > > To view this discussion on the web visit  
> > > > > > > > > [https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764](https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764)  
> > > > > > > > > a-4164-ab02-475b88b1620f%[40googlegroups.com](http://40googlegroups.com)  
> > > > > > > > > [https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > > > > .  
> > > > > > > > > For more options, visit [https://groups.google.com/d/optout](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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > > > > msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%  
> > > > > > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > > > > > [https://groups.google.com/d/msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > > > .
> > > > > > 
> > > > > > For more options, visit [https://groups.google.com/d/optout](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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > To view this discussion on the web visit  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/0690924e-d06e-4a94-8f00-58821945aca2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0690924e-d06e-4a94-8f00-58821945aca2%40googlegroups.com)  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/0690924e-d06e-4a94-8f00-58821945aca2%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0690924e-d06e-4a94-8f00-58821945aca2%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > .  
> > > > > For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2ab04022-24d3-4c43-acfc-907899834887%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2ab04022-24d3-4c43-acfc-907899834887%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 30, 2015, 7:02am UTC](https://discuss.elastic.co/t/building-a-cluster-adding-a-node/21836/11 "2015-01-30T07:02:57Z")

</div>

Just set discovery.zen.ping.unicast.hosts: ["[host1.mydomain.com](http://host1.mydomain.com),  
[host2.mydomain.com](http://host2.mydomain.com)"] on both hosts, unless you are changing the port it  
will use the default.

Also, cluster.name needs to be exactly the same on both hosts.

On 30 January 2015 at 14:35, GWired [garrettcjohnson@gmail.com](mailto:garrettcjohnson@gmail.com) wrote:

> Got it going as a service... ugh.. the user I was using didn't have rights  
> to run a service. Had to do it in the services.msc instead of service  
> manager.
> 
> On Thursday, January 29, 2015 at 10:09:46 PM UTC-5, GWired wrote:
> 
> > I've been messing with things on Host2 and it will no longer Start as a  
> > service but when Iaunch it as myself logged in it does this...
> > 
> > [2015-01-29 20:44:54,480][INFO][transport] [Cat]  
> > bound\_address  
> > {inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address {inet[/10.160.129.57:9300  
> > ]}  
> > [2015-01-29 20:44:54,530][INFO][discovery] [Cat]  
> > ESMyName/efU  
> > 1z15ERPCS3qOVb5posA  
> > [2015-01-29 20:44:57,590][INFO][cluster.service] [Cat]  
> > new\_master [Ca  
> > t][efU1z15ERPCS3qOVb5posA][HOST2][inet[/10.160.129.57:9300]], reason:  
> > zen-disco-join (elected\_as\_master)  
> > [2015-01-29 20:44:57,804][INFO][http] [Cat]  
> > bound\_address  
> > {inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address {inet[/10.160.129.57:9200  
> > ]}  
> > [2015-01-29 20:44:57,805][INFO][node] [Cat] started
> > 
> > On Thursday, January 29, 2015 at 9:07:37 PM UTC-5, GWired wrote:
> > 
> > > host1 elasticsearch.yml  
> > > [gist:1db14fe7fcd93013defc · GitHub](https://gist.github.com/anonymous/1db14fe7fcd93013defc)
> > > 
> > > Host2 elasticsearch.yml:  
> > > [ES-Host2 · GitHub](https://gist.github.com/anonymous/b4ac49f2a2a559204632)
> > > 
> > > On Thursday, January 29, 2015 at 4:49:33 PM UTC-5, Mark Walkom wrote:
> > > 
> > > > Then your nodes have not joined together.
> > > > 
> > > > Can you gist/pastebin/etc your configs so we can check them?
> > > > 
> > > > On 29 January 2015 at 14:56, GWired [garrett...@gmail.com](mailto:garrett...@gmail.com) wrote:
> > > > 
> > > > > On my initial host (host1) I changed my cluster.name to
> > > > > 
> > > > > cluster.name: ESMyName
> > > > > 
> > > > > Which in elasticsearchhead it is showing as the new name.
> > > > > 
> > > > > I also uncommented::
> > > > > 
> > > > > discovery.zen.ping.multicast.enabled: false
> > > > > 
> > > > > And added
> > > > > 
> > > > > discovery.zen.ping.unicast.hosts: ["[host2.mydomain.com:9200](http://host2.mydomain.com:9200)"]
> > > > > 
> > > > > on the new node I did the same
> > > > > 
> > > > > discovery.zen.ping.unicast.hosts: ["[host1.mydomain.com:9200](http://host1.mydomain.com:9200)"]
> > > > > 
> > > > > On host1 ESHead says... cluster heath: yellow (24 of 48)  
> > > > > On host2 ESHead says... clusert heath: yellow (1 of 2)
> > > > > 
> > > > > I see no way to tell that they are attached or that they know about  
> > > > > each other.
> > > > > 
> > > > > The name of the other node isn't showing up in either version of the  
> > > > > head.
> > > > > 
> > > > > On Monday, January 26, 2015 at 5:42:44 PM UTC-5, Mark Walkom wrote:
> > > > > 
> > > > > > If you just downloaded and started ES then your settings will be  
> > > > > > default ones.
> > > > > > 
> > > > > > Change cluster.name to something that isn't elasticsearch, and make  
> > > > > > sure it is the same on both nodes.  
> > > > > > Just list both hosts under discovery.zen.ping.unicast.hosts. Also  
> > > > > > make sure you disable multicast at the same time.
> > > > > > 
> > > > > > Plugins need to be installed on all nodes if you want to access them  
> > > > > > via any node, however some plugins need to be installed on all hosts  
> > > > > > regardless, so check the docs.
> > > > > > 
> > > > > > On 27 January 2015 at 08:22, GWired [garrett...@gmail.com](mailto:garrett...@gmail.com) wrote:
> > > > > > 
> > > > > > > Ok so I looked at the config file and found this:
> > > > > > > 
> > > > > > > cluster.name - which you are saying I set it to the same on both  
> > > > > > > machines... got it.
> > > > > > > 
> > > > > > > discovery.zen.ping.unicast.hosts: ["host1", "host2:port"] ---  
> > > > > > > since I am not on the same network in this case they are in different but  
> > > > > > > accessible domains (crossing DIT and SIT areas... don't get me started).  
> > > > > > > do I put in the URL of the other engine into this in the elasticsearch for  
> > > > > > > each one and point it to each other? Like so
> > > > > > > 
> > > > > > > First ES node  
> > > > > > > discovery.zen.ping.unicast.hosts: ["[node2.dit.domain.com:9200](http://node2.dit.domain.com:9200)"]
> > > > > > > 
> > > > > > > Second ES node  
> > > > > > > discovery.zen.ping.unicast.hosts: ["[node1.sit.domain.com:9200](http://node1.sit.domain.com:9200)"]
> > > > > > > 
> > > > > > > * * *
> > > > > > > 
> > > > > > > This leads me to other questions:
> > > > > > > 
> > > > > > > Do I have to install plugins on each node individually?
> > > > > > > 
> > > > > > > I'm assuming the data figures out how to get to the nodes on it's  
> > > > > > > own.
> > > > > > > 
> > > > > > > I've seen properties in the [ElasticSearch.net](http://ElasticSearch.net) code that would allow  
> > > > > > > me to do some kind of discovery for nodes as well in the event one is down.
> > > > > > > 
> > > > > > > On Monday, January 26, 2015 at 3:34:04 PM UTC-5, GWired wrote:
> > > > > > > 
> > > > > > > > I'm doing this in windows.
> > > > > > > > 
> > > > > > > > I'm crossing internal domains for each node so I thought I'd have  
> > > > > > > > to tell something somewhere that there is another node.
> > > > > > > > 
> > > > > > > > Also I probably want it configured the same way.
> > > > > > > > 
> > > > > > > > Also I don't see where I select a cluster name for the nodes.
> > > > > > > > 
> > > > > > > > With the single node install all I did was... .install and magic  
> > > > > > > > happened. I like magic.
> > > > > > > > 
> > > > > > > > I would love if it I just told ES this node to install onto the new  
> > > > > > > > node and it did all of that for me as long as I have drive letter access  
> > > > > > > > etc.
> > > > > > > > 
> > > > > > > > Garrett
> > > > > > > > 
> > > > > > > > On Monday, January 26, 2015 at 3:06:42 PM UTC-5, Jörg Prante wrote:
> > > > > > > > 
> > > > > > > > > Hey, it is as simple as running the first node. Just install ES,  
> > > > > > > > > select a cluster name for the nodes, start it on the nodes, and let the  
> > > > > > > > > node discovery join the nodes. I recommend odd numbers and at least 3  
> > > > > > > > > nodes to avoid a split brain.
> > > > > > > > > 
> > > > > > > > > Or did I miss something?
> > > > > > > > > 
> > > > > > > > > Jörg
> > > > > > > > > 
> > > > > > > > > On Mon, Jan 26, 2015 at 8:59 PM, GWired [garrett...@gmail.com](mailto:garrett...@gmail.com)  
> > > > > > > > > wrote:
> > > > > > > > > 
> > > > > > > > > > Is there a place where someone can point me to a simple set of  
> > > > > > > > > > instructions for adding a node to an Elastic Search cluster?
> > > > > > > > > > 
> > > > > > > > > > I think I understand Sharding and Nodes and that's what the  
> > > > > > > > > > documents do is talk about them.
> > > > > > > > > > 
> > > > > > > > > > But what I don't understand is...
> > > > > > > > > > 
> > > > > > > > > > How do install Elasticsearch on the second node.  
> > > > > > > > > > If I'm only able to have a two node cluster that will be both a  
> > > > > > > > > > failover and maybe some perf boost, how do I ensure that I've set all my  
> > > > > > > > > > settings correctly. (Looks like my rivers setup 4 shards). Are there any  
> > > > > > > > > > best practices etc
> > > > > > > > > > 
> > > > > > > > > > I've been googling my fingers off and no luck finding what i'm  
> > > > > > > > > > looking for.
> > > > > > > > > > 
> > > > > > > > > > If I copy the Elasticsearch folder from one machine to  
> > > > > > > > > > another... how can i use that to make a replica.
> > > > > > > > > > 
> > > > > > > > > > Garrett
> > > > > > > > > > 
> > > > > > > > > > --  
> > > > > > > > > > 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](mailto:elasticsearc...@googlegroups.com).  
> > > > > > > > > > To view this discussion on the web visit  
> > > > > > > > > > [https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764](https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764)  
> > > > > > > > > > a-4164-ab02-475b88b1620f%[40googlegroups.com](http://40googlegroups.com)  
> > > > > > > > > > [https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2b89ca10-764a-4164-ab02-475b88b1620f%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > > > > > .  
> > > > > > > > > > For more options, visit [https://groups.google.com/d/optout](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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > > > > > To view this discussion on the web visit  
> > > > > > > > > [https://groups.google.com/d/msgid/elasticsearch/30528bf4-f10](https://groups.google.com/d/msgid/elasticsearch/30528bf4-f10)  
> > > > > > > > > 7-4c1d-8307-a0273cee4b93%[40googlegroups.com](http://40googlegroups.com)  
> > > > > > > > > [https://groups.google.com/d/msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/30528bf4-f107-4c1d-8307-a0273cee4b93%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > > > > .
> > > > > > > 
> > > > > > > For more options, visit [https://groups.google.com/d/optout](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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > > msgid/elasticsearch/0690924e-d06e-4a94-8f00-58821945aca2%  
> > > > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > > > [https://groups.google.com/d/msgid/elasticsearch/0690924e-d06e-4a94-8f00-58821945aca2%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0690924e-d06e-4a94-8f00-58821945aca2%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > .  
> > > > > > For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/2ab04022-24d3-4c43-acfc-907899834887%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2ab04022-24d3-4c43-acfc-907899834887%40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/2ab04022-24d3-4c43-acfc-907899834887%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2ab04022-24d3-4c43-acfc-907899834887%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .
> 
> For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9TGKBUj9Kth6iRqnStj\_zu7V-9kwwATHVODjNo8RzVcw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9TGKBUj9Kth6iRqnStj_zu7V-9kwwATHVODjNo8RzVcw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:35am UTC](https://discuss.elastic.co/t/building-a-cluster-adding-a-node/21836/12 "2017-07-06T00:35:44Z")

</div>


