Runbook

Imbalanced data distribution in a MongoDB sharded cluster.

Back to Runbooks

Overview

This incident type occurs when a MongoDB sharded cluster experiences an imbalance in the distribution of data across its shards. Sharding is a method of horizontally partitioning data across multiple servers to improve performance and scalability. However, if the distribution of data is uneven, it can lead to slower queries and poor performance. This can happen due to a variety of reasons, such as uneven data growth, uneven write patterns, or improper shard key selection. It is important to monitor and rebalance the data distribution periodically to ensure optimal performance.

Parameters

Debug

Check the status of the MongoDB sharded cluster

Check the status of the individual MongoDB shards

Check the distribution of data across MongoDB shards

Check the amount of data stored on each MongoDB shard

Repair

Rebalance the data across the MongoDB shards

Learn more

Related Runbooks

Check out these related runbooks to help you debug and resolve similar issues.