Thanks Anshum!  Very helpful.

Matt Kuiper - Software Engineer
Intelligent Software Solutions
p. 719.452.7721 | matt.kui...@issinc.com 
www.issinc.com | LinkedIn: intelligent-software-solutions

-----Original Message-----
From: Anshum Gupta [mailto:ans...@anshumgupta.net] 
Sent: Monday, February 09, 2015 4:52 PM
To: solr-user@lucene.apache.org
Subject: Re: 1 Solr many Shards?

Check out the maxShardsPerNode param for CREATE collection here:
https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api1

It defaults to 1 i.e. on a single node, only a single shard for the collection 
is allowed but you can override to a really high value e.g.
start SolrCloud with a single node, create collection with numShards=5 and
maxShardsPerNode=5 (or more), This will allow you to place multiple shards for 
the same collection on a single node.

Also, the -DzkHost parameter has nothing to do with this. It is the connection 
string for the ZooKeeper server/ensemble and is required to start a SolrCloud 
node but has no impact on what you've asked.


On Mon, Feb 9, 2015 at 2:56 PM, Matt Kuiper <matt.kui...@issinc.com> wrote:

> My understanding is that a single Solr instance can "manage" multiple 
> cores/indexes.  I am wondering if a single Solr instance can manage 
> multiple shards (but not necessarily  all) of an index.
>
> If so, how might this be configured and the Solr instance started?  I 
> am familiar with starting a Solr server within a Solr Cloud that 
> handles a single shard of an index by specifying the DzkHost parameter.
>
> Thanks,
>
> Matt Kuiper
>
>
>
>


--
Anshum Gupta
http://about.me/anshumgupta

Reply via email to