Sharding in CouchDB: Increasing the Number of Shards

This advice is only true for CouchDB 3.0.0 or later. Next week, we’ll cover increasing the number of shards in CouchDB 2.x.

Shard Splitting

Increasing the number of shards in CouchDB is implemented by a technique called shard splitting. It …


This content originally appeared on DEV Community and was authored by Maddy

This advice is only true for CouchDB 3.0.0 or later. Next week, we’ll cover increasing the number of shards in CouchDB 2.x.

Shard Splitting

Increasing the number of shards in CouchDB is implemented by a technique called shard splitting. It allows you to specify for any one shard in a database to be split into two equal-sized shards.

The Reshard Endpoint

CouchDB does all the hard work for you: a single request to the /_reshard endpoint will start the process. Shard splitting is a background process that can go on while your CouchDB cluster is fully operational. Once the split shards are available, CouchDB starts using them to serve requests instead of the original shard, which then gets deleted.

Note that shard copies are replicated across your cluster. We recommend you split one shard at a time. In addition, we recommend to split all shards of a database around the same time in order to guarantee consistent performance.


This content originally appeared on DEV Community and was authored by Maddy


Print Share Comment Cite Upload Translate Updates
APA

Maddy | Sciencx (2025-10-09T08:00:00+00:00) Sharding in CouchDB: Increasing the Number of Shards. Retrieved from https://www.scien.cx/2025/10/09/sharding-in-couchdb-increasing-the-number-of-shards/

MLA
" » Sharding in CouchDB: Increasing the Number of Shards." Maddy | Sciencx - Thursday October 9, 2025, https://www.scien.cx/2025/10/09/sharding-in-couchdb-increasing-the-number-of-shards/
HARVARD
Maddy | Sciencx Thursday October 9, 2025 » Sharding in CouchDB: Increasing the Number of Shards., viewed ,<https://www.scien.cx/2025/10/09/sharding-in-couchdb-increasing-the-number-of-shards/>
VANCOUVER
Maddy | Sciencx - » Sharding in CouchDB: Increasing the Number of Shards. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/10/09/sharding-in-couchdb-increasing-the-number-of-shards/
CHICAGO
" » Sharding in CouchDB: Increasing the Number of Shards." Maddy | Sciencx - Accessed . https://www.scien.cx/2025/10/09/sharding-in-couchdb-increasing-the-number-of-shards/
IEEE
" » Sharding in CouchDB: Increasing the Number of Shards." Maddy | Sciencx [Online]. Available: https://www.scien.cx/2025/10/09/sharding-in-couchdb-increasing-the-number-of-shards/. [Accessed: ]
rf:citation
» Sharding in CouchDB: Increasing the Number of Shards | Maddy | Sciencx | https://www.scien.cx/2025/10/09/sharding-in-couchdb-increasing-the-number-of-shards/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.