# Setting up Elasticsearch cluster

**URL:** <https://discuss.elastic.co/t/setting-up-elasticsearch-cluster/16097>\
**Category:** Elasticsearch\
**Created:** [March 3, 2014, 5:02am UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-cluster/16097 "2014-03-03T05:02:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![soumya\_sengupta](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@soumya\_sengupta](https://discuss.elastic.co/u/soumya_sengupta)\
**Post date:** [March 3, 2014, 5:02am UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-cluster/16097/1 "2014-03-03T05:02:28Z")

</div>

I am trying to setup an elasticsearch cluster

I have started an instance of elasticsearch in one machine (A) and entered  
all my data.  
Next I have started another elasticsearch on another machine (B).  
Problem: As long as elasticsearch on A is on, search in B is happenning but  
if I close A, search on B stops.

I thought may be this is happening to avoid split brain problem.  
So I started another elasticsearch instance (C) and set the number of  
master nodes to two.  
But if A is closed search is not happening in either C or B.

Note: Data has been entered in instance A only when B or C instances were  
not on.

As an user I want to have a single cluster ip, I need not to worry about  
three instances A,B or C. Also search must go on as long as any one of A,B  
or C is on.  
Kindly let me know about the steps to follow.  
Also any other resources, where there is a step by step guide to follow ?

--  
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/f19727ab-bfe8-4f3c-9d09-5998963899e0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f19727ab-bfe8-4f3c-9d09-5998963899e0%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Binh\_Ly\_2](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@Binh\_Ly\_2](https://discuss.elastic.co/u/Binh_Ly_2)\
**Post date:** [March 3, 2014, 8:38pm UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-cluster/16097/2 "2014-03-03T20:38:12Z")

</div>

I would would first revert all settings back to the default. Then bring up  
all three ES nodes and check that they all can see each other and form a  
cluster. If you run this on one of the nodes, you should be able to see how  
the cluster looks like:

curl "localhost:9200/\_nodes/network,transport,http?pretty"

If they cannot all see each other, you have to first find out why - is it  
possible that your network does not support multicast? If so, then you need  
to go into the elasticsearch.yml file of _all three nodes_ and turn off  
multicast, and turn on unicast discovery and put a seed list of nodes in  
there (i.e. IP addresses of 2 or 3 of your cluster nodes). Then stop them  
all and start them all again. Then check again if they all form a cluster.

curl "localhost:9200/\_nodes/network,transport,http?pretty"

Once you have verified that they can all see each other, then you can start  
with your experimentation of putting data in, taking nodes down, seeing the  
behavior, etc.

--  
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/a325a1cf-a535-43b1-b0c9-1fe4aeb29202%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a325a1cf-a535-43b1-b0c9-1fe4aeb29202%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 1:46am UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-cluster/16097/3 "2017-07-06T01:46:04Z")

</div>


