MongoDBAnnouncement
Introducing MongoDB Atlas Sharding Advisor: Know When and How to Scale Sharded Clusters
Summary
As applications grow, database teams face complex decisions about data distribution and scaling, and MongoDB Atlas Sharding Advisor helps by bringing sharding insights, recommendations, and shard key analysis into a unified view for dedicated Atlas deployments running MongoDB 8.0 or later. Sharding Insights consolidates shard-level, collection-level, and mongos metrics using existing Atlas infrastructure, requiring no additional agents or separate telemetry pipelines. Sharding Recommendations flag conditions such as a collection growing beyond a single shard’s capacity, uneven load across shards, or shards approaching capacity, and provide context and suggested next steps without automatic remediation. The Shard Key Analyzer evaluates candidate keys on cardinality, frequency, and monotonicity using the analyzeShardKey command, and can incorporate read and write distribution data when query sampling is configured. It supports single-field, compound, and hashed shard-key analysis, helping teams compare candidates with evidence rather than assumptions alone, and enabling more informed decisions about their sharded deployments.
Context
Database teams managing MongoDB sharded clusters face challenges in understanding cluster health, diagnosing uneven load, and choosing appropriate shard keys. These tasks often require piecing together metrics across multiple views and relying on specialized expertise, making it difficult to make informed scaling decisions as workloads grow.
Approach / What changed
MongoDB Atlas Sharding Advisor combines Sharding Insights, Sharding Recommendations, and Shard Key Analyzer into a unified view within MongoDB Atlas. It uses existing Atlas metrics infrastructure and the analyzeShardKey command to provide visibility, contextual recommendations, and shard key analysis without requiring additional agents or automatic remediation.
Takeaways
Sharding Advisor is available for dedicated Atlas deployments running MongoDB 8.0 or later.
Sharding Insights unifies shard-level, collection-level, and mongos metrics without requiring additional agents or separate telemetry pipelines.
Shard Key Analyzer evaluates candidate keys on cardinality, frequency, and monotonicity, and can incorporate read/write distribution data when query sampling is configured.
FAQ
What MongoDB versions does Sharding Advisor support?
Sharding Advisor is available for dedicated MongoDB Atlas deployments running MongoDB 8.0 or later.
Does Sharding Advisor automatically remediate issues?
No, Sharding Advisor provides decision support with context and suggested next steps, but teams remain in control of evaluating and applying actions. It does not automatically remediate issues.
What shard key types does the Shard Key Analyzer support?
The Shard Key Analyzer supports single-field, compound, and hashed shard-key analysis, evaluating candidates on cardinality, frequency, and monotonicity.
Source and freshness
- Source
- mongodb.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.