1 - Data from both will be available, you've just told ES not to use the defaults for one index. A replica is not a backup, it's a 1:1 replica so it will contain the same data as the primary shard. 2 - Not sure, but I don't think so as lucene will try to split things. Routing is the recommended method for what you want. 3 - Yes, although you are unlikely to have them both on one node unless it is a single node cluster. What do mean by backup? If you're talking about replicas instead then the cluster will build a new replica if one dies.
Regards, Mark Walkom Infrastructure Engineer Campaign Monitor email: [email protected] web: www.campaignmonitor.com On 3 April 2014 00:21, Subhadip Bagui <[email protected]> wrote: > Thanks Mark for the prompt reply, I have some more doubts > > 1. Suppose one index is running with 3 shards and 1 replica and other > index is running with the cluster settings i.e. 5 shards 2 replica then > total 3+1 or 5+2 shards will be available in cluster? I have installed > elasticsearch-head plugin but the replica shard is not showing there. > > For data distribution, replica shard also keeps other index documents or > it will be used to keep backup copy of data only. > > 2. So documents under same index will be split due to sharding and > distribute over the shards right ? Can we push all the documents for same > index in a particular shard? I don't want to use custom routing as then I > need one field value common for all the documents. How can we find out > which shard is holding which documents? > > 3. If I make one index with 2 shards and no replica and the node in > cluster holding this 2 shards dies, then will I lose the data, or the data > will have a copy in cluster level replica? If I have only 1 replica and > the node holds the replica dies then how the backup will happen? > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/4d7d0243-dcd1-4ac7-9fef-1d6e44599ea1%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/4d7d0243-dcd1-4ac7-9fef-1d6e44599ea1%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEM624YnT8-1mHTJ-%3D8RmZhmn5MZugJ0cL39zdKwifG8o98myw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
