Simplest would be to host multiple shards on the same machine. Use
ADDREPLICA/DELETEREPLICA (collections API calls) to move the replicas
hosted on the nodes you want to use for another purpose and, when all
replicas are moved you can repurpose those machines.

Another option would be to create a _new_ collection on the machines
you'll have dedicated to Solr with fewer shards, re-index all the
documents to the new machine and use collection aliasing (collections
API CREATEALIAS) to point to the new collection, then delete the old
collection.

There are significantly more complex options to truly merge the
shards, but I wouldn't consider them until the above was proven to be
unsatisfactory.

In any case, you need to be sure that the machines that remain are
powerful enough to host all the documents you've put on them.

Best,
Erick

On Sat, May 19, 2018 at 11:58 PM, 苗海泉 <mseaspr...@gmail.com> wrote:
> Hello everyone, I encountered a shard reduction problem with solr. My
> current solr cluster is deployed in solrcloud mode. Now I need to use
> several solr machines for other purposes. The solr version I use is Solr
> 6.0. What should I do? Do it, thank you for your help.--
> ==============================
> 联创科技
> 知行如一
> ==============================

Reply via email to