On 11/6/2013 5:52 AM, Emmanuel GOURAUD wrote:
> I have a solr cloud (solr 4.3.1) configuration that is composed of 8 
> instances:
> 
> 4 shards with their replicas (solrcloud replication, not legacy one)
> 
> Due to a wrong assignment by solrcloud(the leader shard and its replica was 
> on the same physical server), i must set the shardId parameter (the first 
> shard is not concerned).

If you set up Solr properly so there is one Solr instance per server,
SolrCloud cannot make this mistake.  If you have more than one Solr
instance per server, SolrCloud only knows that there are multiple
instances, the fact that they live on the same server is not something
it knows about.  Solr is more efficient if there is only one instance
per server, which is why it's recommended.  One Solr instance can run
many cores.  Shard replicas are implemented as cores.

> Now i have a file in the index directory which is successfuly replicated to 
> the replica on the shard1 but not on the 3 others (shard 2 to 4 did not 
> replicate correctly this file), this also happens when i do a full sync  
> (when i delete all files to force a full solr sync)

If you have files in the index directory for one of your shard1
replicas, then those files can only be replicated to other replicas of
shard1.  Shards 2 through 4 are completely separate indexes from shard1
and will never receive shard1's files or documents.

Thanks,
Shawn

Reply via email to