# Elasticsearch Cluster : Unable to detect documents of another elasticsearch

**URL:** <https://discuss.elastic.co/t/elasticsearch-cluster-unable-to-detect-documents-of-another-elasticsearch/13312>\
**Category:** Elasticsearch\
**Created:** [August 23, 2013, 1:46pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-unable-to-detect-documents-of-another-elasticsearch/13312 "2013-08-23T13:46:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohit\_Kumar](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@mohit\_Kumar](https://discuss.elastic.co/u/mohit_Kumar)\
**Post date:** [August 23, 2013, 1:46pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-unable-to-detect-documents-of-another-elasticsearch/13312/1 "2013-08-23T13:46:28Z")

</div>

Hi folks,  
I am creating elasticsearch cluster on machine A and machine B. Machine A  
(master node) having 4 documents and machine b(slave node) having 3  
documents.  
But When I run the elasticsearch, only Machine A (master node) documents  
are visible and these documents are also copied into the Machine B(slave  
node).  
Here i am attaching my both master and slave elasticsearch.yml file.  
kindly piont me where i am doing wrong.  
Regrads  
Mohit Kumar Yadav  
(MCA/BBA)  
Assocaite Software Developer  
Next Gen Invent Corporation, Noida  
Email Id : [mohit.kumar@ngiventures.com](mailto:mohit.kumar@ngiventures.com),mohit.kumar.ngi@gmail.com

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)\
**Post date:** [August 26, 2013, 4:34pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-unable-to-detect-documents-of-another-elasticsearch/13312/2 "2013-08-26T16:34:09Z")

</div>

Hi,  
if you only have two machines there is no need to configure one as a master  
and the other one as data holder only. In fact that would cause the cluster  
to stop working at all if your master node crashes or is not reachable.  
Every cluster needs to have a master node, which is the one that makes  
cluster-wide decisions, for instance regarding shard allocation.  
That doesn't mean that you can only index data sending documents to the  
master node. You can send documents to whichever node in your cluster,  
which holds the cluster state and will know where the document is supposed  
to be stored (which shards). But if you have a single master eligible node  
and that one crashes, the cluster will be down.  
When you set master:false in your configuration file you prevent that node  
from becoming a master, effectively saying that it won't be master eligible.

That said, how do you know that the first node has 4 documents and the  
second one 3? How many indices do you have? How many shards?  
And what query do you execute to get those documents back?

On Friday, August 23, 2013 3:46:28 PM UTC+2, Mohit Kumar Yadav wrote:

> Hi folks,  
> I am creating elasticsearch cluster on machine A and machine B. Machine A  
> (master node) having 4 documents and machine b(slave node) having 3  
> documents.  
> But When I run the elasticsearch, only Machine A (master node) documents  
> are visible and these documents are also copied into the Machine B(slave  
> node).  
> Here i am attaching my both master and slave elasticsearch.yml file.  
> kindly piont me where i am doing wrong.  
> Regrads  
> Mohit Kumar Yadav  
> (MCA/BBA)  
> Assocaite Software Developer  
> Next Gen Invent Corporation, Noida  
> Email Id : [mohit...@ngiventures.com](mailto:mohit...@ngiventures.com) \<javascript:\>,  
> [mohit.kumar.ngi@gmail.com](mailto:mohit.kumar.ngi@gmail.com) \<javascript:\>

--  
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).  
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, 2:19am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-unable-to-detect-documents-of-another-elasticsearch/13312/3 "2017-07-06T02:19:46Z")

</div>


