Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories Atlas
Created by Guest
Created on May 9, 2024

Adding balancer activity from sharding Statistics into Atlas UI

The customer often experience multiple performance issues in different clusters related to chunk migrations and in each case the customers are struggling with being able to determine that chunk migrations were occurring and started at the same time as the performance issue. The customer is limited in the observability available to identify this problem via Atlas UI: Using db.serverStatus().shardingStatistics on each shard can provide what the customers need. https://www.mongodb.com/docs/manual/reference/command/serverStatus/#mongodb-serverstatus-serverstatus.shardingStatistics In particular, key metrics below will provide good insight on balancer activity : For donor: 1. db.serverStatus().shardingStatistics.countDonorMoveChunkStarted : The total number of times that MongoDB starts the moveChunk command or moveRange command on the primary node of the shard as part of the range migration procedure. This increasing number does not consider whether the chunk migrations succeed or not 2. db.serverStatus().shardingStatistics.countDocsClonedOnDonor : The cumulative, always-increasing count of documents that MongoDB clones on the primary node of the donor shard. 3. db.serverStatus().shardingStatistics.totalDonorMoveChunkTimeMillis : Cumulative time in milliseconds to move chunks from the current shard to another shard. For each chunk migration, the time starts when a moveRange or moveChunk command starts, and ends when the chunk is moved to another shard in a range migration procedure. 4. db.serverStatus().shardingStatistics.countDocsDeletedByRangeDeleter : The cumulative, always-increasing count of documents that MongoDB deletes on the primary node of the donor shard during chunk migration. 5. db.serverStatus().shardingStatistics.rangeDeleterTasks : The current total of the queued chunk range deletion tasks that are ready to run or are running as part of the range migration procedure. For Recipient: 1. db.serverStatus().shardingStatistics.countRecipientMoveChunkStarted : Cumulative, always-increasing count of chunks this member, acting as the primary of the recipient shard, has started to receive (whether the move has succeeded or not). 2. db.serverStatus().shardingStatistics.countDocsClonedOnRecipient : The cumulative, always-increasing count of documents that MongoDB clones on the primary node of the recipient shard.
  • Attach files