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:
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
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
Here i am attaching my both master and slave elasticsearch.yml file.
kindly piont me where i am doing wrong.
Mohit Kumar Yadav
Assocaite Software Developer
Next Gen Invent Corporation, Noida
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 firstname.lastname@example.org.
For more options, visit https://groups.google.com/groups/opt_out.