You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Sushil K Tripathi <tr...@hotmail.com> on 2018/01/16 15:38:09 UTC

modify number of Shard

Team,


We have a existing setup of Solr Cluster and we need to modify the current number of Shard from 4 to 6. Can somebody confirm if it is possible to modify the number of Shard or i just need to recreate the whole collection.


With Warm Regards...
Sushil K. Tripathi

Re: modify number of Shard

Posted by Sushil K Tripathi <tr...@hotmail.com>.
Thanks Erick!!!


With Warm Regards...
Sushil K. Tripathi


________________________________
From: Erick Erickson <er...@gmail.com>
Sent: Tuesday, January 16, 2018 11:02 AM
To: solr-user
Subject: Re: modify number of Shard

If you're using the default compositeId routing then this will not be
possible. You can increase to any multiple of 4 using SPLITSHARD, but
you can't just add an arbitrary number of shards.

If you're using the implicit router then you can add as many shards as you want.

Best,
Erick

On Tue, Jan 16, 2018 at 7:38 AM, Sushil K Tripathi
<tr...@hotmail.com> wrote:
> Team,
>
>
> We have a existing setup of Solr Cluster and we need to modify the current number of Shard from 4 to 6. Can somebody confirm if it is possible to modify the number of Shard or i just need to recreate the whole collection.
>
>
> With Warm Regards...
> Sushil K. Tripathi

Re: modify number of Shard

Posted by Erick Erickson <er...@gmail.com>.
If you're using the default compositeId routing then this will not be
possible. You can increase to any multiple of 4 using SPLITSHARD, but
you can't just add an arbitrary number of shards.

If you're using the implicit router then you can add as many shards as you want.

Best,
Erick

On Tue, Jan 16, 2018 at 7:38 AM, Sushil K Tripathi
<tr...@hotmail.com> wrote:
> Team,
>
>
> We have a existing setup of Solr Cluster and we need to modify the current number of Shard from 4 to 6. Can somebody confirm if it is possible to modify the number of Shard or i just need to recreate the whole collection.
>
>
> With Warm Regards...
> Sushil K. Tripathi