Splitting shards
Imagine a situation where you reach a limit of your current deployment—the number of shards is just not enough. For example, the indexing throughput is lower and lower, because the disks are not able to keep up. Of course, one of the possible solutions is to spread the index across more shards; however, you already have a collection and you want to keep the data and reindexing is not an option, because you don't have the original data. Solr can help you with such situations by allowing splitting shards of already created collections. This recipe will show you how to do it.
Getting ready
Before reading further, I would suggest you all to read the Creating a new SolrCloud cluster recipe of this chapter. This recipe will show you how to create a new SolrCloud cluster. We also assume that ZooKeeper is running on 192.168.1.10
and is listening on port 2181
and that we already have four SolrCloud nodes running as a cluster.
How to do it...
Let's assume that we already have a SolrCloud...