You might find this useful: http://heliosearch.org/solrcloud-assigning-nodes-machines/
It uses the collections API to create your collection with zero nodes, then shows how to assign your leaders to specific machines (well, at least specify the nodes the leaders will be created on, it doesn't show how to assign, for instance, shard1 to nodeX).... It also shows a way to assign specific replicas on specific nodes to specific shards, although as Mark says this is a transitional technique. I know there's an "addreplica" command in the works for the collections API that should make this easier, but that's not released yet. Best, Erick On Thu, Mar 20, 2014 at 7:23 AM, Ugo Matrangolo <ugo.matrang...@gmail.com> wrote: > Hi, > > I would like some advice about the best way to bootstrap from scratch a > SolrCloud cluster housing at least two collections with different > sharding/replication setup. > > Going through the docs/'Solr In Action' book what I have sees so far is > that there is a way to bootstrap a SolrCloud cluster with sharding > configuration using the: > > -DnumShards=2 > > but this (afaik) works only for a single collection. What I need is a way > to deploy from scratch a SolrCloud cluster housing (e.g.) two collections > Foo and Bar where Foo has only one shard and is replicated everywhere while > Bar has three shards and ,again, is replicated. > > I can't find a config file where to put this sharding plan and I'm starting > to think that the only way to do this is after the deploy using the > Collections API. > > Is there a best approach way to do this ? > > Ugo