On 12/10/2013 12:02 PM, cwhi wrote:
> I'm wondering if there is an automated way to rebalance a solr collection
> once a new node is added, so the maximum size of a single shard is
> decreased.  I was pointed to  this document
> <http://wiki.apache.org/solr/ZooKeeperIntegration#Rebalancing>   which seems
> to imply such functionality exists, but I can't find any concrete examples.

It looks like that is for moving existing shards around, not for
changing the shard count.

Document rebalancing like you have described is not currently possible.
 If you want to change the number of shards in a collection, you'll need
to make a new collection with the appropriate shard count, then index
your documents into it.

You can take advantage of collection aliasing in order to "swap" a new
collection with an old one.

There is recently added SPLITSHARD capability that allows you to take a
shard and split it into two, but it's not exactly the same thing as
changing the shard count.

https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-SplitaShard

https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-CreateormodifyanAliasforaCollection

Thanks,
Shawn

Reply via email to