On 5/17/2013 4:03 AM, Jared Rodriguez wrote: > So it sounds like you want the collection created with a master and a > replica and you want one to be on each node? If so, I believe that you can > get that effect by specifying maxShardsPerNode=1 as part of your url line. > This will tell solr to create the master and replica that you desire but > to not put them on the same node.
Jared, The default value of maxShardsPerNode is 1. Even if you make it higher, the collections API won't put replicas for the same shard on the same server, as long as the number of available hosts is a multiple of your replication factor. I would consider it a bug if the API were to ever put more than one replica for the same shard on the same host, regardless of the number of available hosts. I do not know whether the API has such a bug or not. A override option to allow replicas on the same host might make sense for proof-of-concept setups, but you'd never want to use it in production. Thanks, Shawn