Sharding Commands
Note
For details on a specific command, including syntax and examples, click on the link to the command's reference page.
Name | Description |
---|---|
Stops an in-progress New in version 8.0. | |
Aborts a resharding operation. New in version 5.0. | |
Stops an in-progress New in version 8.0. | |
Adds a shard to a sharded cluster. | |
Calculates metrics for evaluating a shard key. New in version 7.0. | |
Returns information on whether the chunks of a sharded collection are balanced. | |
Starts a balancer thread. | |
Returns information on the balancer status. | |
Stops the balancer thread. | |
Performs a series of consistency checks on sharding metadata. New in version 7.0. | |
Clears the | |
Cleans up a failed resharding operation. New in version 5.0. | |
Forces a resharding operation to block writes and complete. New in version 5.0. | |
Configures balancer settings on a sharded collection. New in version 5.3. | |
Configures query sampling for a collection. New in version 7.0. | |
Creates a database. | |
Returns the hostnames and connection strings for shards in the cluster and the config servers for your cluster. | |
Verifies that a process is a | |
Returns a list of configured shards. | |
Internal command that migrates chunks between shards. | |
Reassigns the primary shard when removing a shard from a sharded cluster. | |
Migrates ranges between shards. | |
Squashes mergeable chunks for a given collection on a shard. | |
Provides the ability to combine chunks on a single shard. | |
Refines a collection's shard key by adding a suffix to the existing key. | |
Starts the process of removing a shard from a sharded cluster. | |
Initiates a resharding operation to change the shard key for a collection, changing the distribution of your data. New in version 5.0. | |
Prevents the start of new automatic migrations on a collection, prevents in-flight manual migrations from committing, and excludes the collection from new balancer rounds. | |
Enables the sharding functionality for a collection, allowing the collection to be sharded. | |
Reports whether the | |
Creates a new chunk. | |
Configures a dedicated config server to run as a config shard. New in version 8.0. | |
Configures a config shard to run as a dedicated config server. New in version 8.0. | |
Removed in MongoDB 5.0. Internal command that affects connections between instances in a MongoDB deployment. | |