Increase MongoDB Cluster Shards
DBaaS allows you to increase the number of shards for MongoDB Enterprise sharded clusters. An increased shard count increases the overall storage of the cluster.
To increase the number of shards, send a PATCH
request with the new shards
count.
Endpoint
Use the following endpoint to request the new instances count: https://api.ionos.com/databases/mongodb/clusters/{clusterId}
Request
Response
The PATCH
example modifies a previously created sharded cluster and sets the number of shards to three.
New shards added this way are created by provisioning new servers and adding them to the sharded cluster. Each shard has the number of servers provided by the instances field. Sharded collections' data will then be distributed to the new shards. For more information, see Balancer Internals.
Last updated
Was this helpful?