Ok, thanks a lot, good to know. BTW: The speed of creating a collections is not the fastest - at least here on this server I use (approx. second), but this is normal right?
On Wed, May 23, 2012 at 9:28 PM, Mark Miller <markrmil...@gmail.com> wrote: > Yeah, currently you have to create the core on each node...we are working > on a 'collections' api that will make this a simple one call operation. > > We should have this soon. > > - Mark > > On May 23, 2012, at 2:36 PM, Daniel Brügge wrote: > > > Hi, > > > > i am creating several cores using the following script. I use this for > > testing SolrCloud and to learn about the distribution of multiple > > collections. > > > > max=500 > >> for ((i=2; i<=$max; ++i )) ; > >> do > >> curl " > >> > http://solrinstance1:8983/solr/admin/cores?action=CREATE&name=collection$i&collection=collection$i&collection.configName=myconfig > >> " > >> done > > > > > > I've setup a SolrCloud with 2 shards which are each replicated by 2 other > > instances I start. > > > > When I first start the installation I have the default "collection1" in > > place which is sharded over shard1 and shard2 with 2 leader nodes and 2 > > nodes which replicate the leaders. > > > > When I run this script above which calls the Coreadmin on one of the > > shards, all the collections are created on only this shard without a > > replica. So e.g. > > > > > > "collection8":{"shard1":{"solrinstance1:8983_solr_collection8":{ > > "shard":"shard1", > > "leader":"true", > > "state":"active", > > "core":"collection8", > > "collection":"collection8", > > "node_name":"solrinstance1:8983_solr", > > > > "base_url":"http://solrinstance1:8983/solr"}}} > > > > > > I always thought, that via zookeeper these collections are sharded and > > replicated or do I need to call on each node the create core action? But > > then I need to know about these nodes, right? > > > > > > Thanks & regards > > > > Daniel > > - Mark Miller > lucidimagination.com > > > > > > > > > > > >