Requires M10+ sharded clusters running MongoDB 8.0 or later in commercial Atlas deployments
Atlas Sharding Insights provides dedicated monitoring and observability for sharded clusters. The Sharding Insights dashboard brings together sharding metadata, hardware usage, data distribution, and balancer activity in one place. Use Sharding Insights to view performance metrics, track workload distribution, and identify issues across your sharded cluster's components.
Atlas provides the following recommendations in Performance Advisor to help you identify when sharding decisions may improve your cluster's performance:
Replica set approaching scale limits
Large or growing unsharded collection
Cluster approaching storage or resource limits
Use the Shard Key Analyzer to analyze candidate shard keys for these recommendations.
Sharding Insights provides Shards, Collections, and Mongos Instances views where you can monitor performance, workload distribution, and resource usage across your cluster's components.
The page displays cluster summary information, active sharding recommendations, and charts showing hardware and sharding-specific metrics over time.
You can filter metrics by time range from the last hour to the last 90 days, or select a custom date and time range to analyze specific time periods.
Access Sharding Insights
In Atlas, go to the Clusters page for your project.
If it's not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.
If it's not already displayed, select your desired project from the Projects menu in the navigation bar.
In the sidebar, click Clusters under the Database heading.
The Clusters page displays.
The Sharding Insights page provides the following views:
Shards: Monitor metrics for individual shards.
Collections: Monitor metrics for individual collections.
Mongos Instances: Monitor metrics for the
mongosinstances in your cluster.
Use the time range selector to choose a preset time range or select a custom date and time range with the Filter by Date and Time picker.
Note
Sharding Insights and Sharding Recommendations are enabled by default. Project owners and admins can toggle these features at the project level in Project Settings:
Sharding Insights: "See sharding health and metrics"
Sharding Recommendations: "Customized recommendations to improve your sharding configuration"
Cluster Summary
The Sharding Insights page displays a summary section at the top that shows key cluster overview information:
Total Shards: Total number of shards in your cluster.
Balancer Status: Current state of the balancer (enabled or disabled).
Balancing Window (UTC): Configured time window for balancer operations, if set.
Config Servers: Overview of configuration server status.
This summary provides a quick overview of your cluster's sharding configuration and current state.
Sharding Recommendations
The Recommendations card below the cluster summary displays active sharding recommendations for your cluster, with a badge that indicates the number of recommendations. Expand the card to view a summary of each recommendation. Atlas recommends an action when it detects:
A large or growing unsharded collection that might benefit from sharding.
A cluster approaching storage or resource limits, which might benefit from additional shards.
A replica set approaching scale limits, which might benefit from converting to a sharded cluster.
To view the details of a recommendation in Performance Advisor, click the recommendation. To evaluate candidate shard keys, click Analyze Shard Keys to open the Shard Key Analyzer in a new tab.
If your cluster has no active recommendations, the card displays a "No recommendations for now" message.
Shard Metrics
The Shards view displays time-series charts for the metrics you select, followed by a table of your cluster's shards. By default, the dashboard shows the System CPU, System Memory, Connections, and Opcounters charts.
To display different metrics, select them from the metrics selector. To filter the charts and the shards table by node type, select All Nodes, Primaries, or Secondaries from the node filter.
Sharding Insights provides the following metrics, grouped by category:
Resources
Hardware resource usage metrics aggregated per shard:
System CPU: Percentage of CPU time used across all cores on the shard.
System Memory: Amount of RAM in use on the shard.
System Network: Total network bytes in and out per second on the shard.
Disk IOPS: Number of disk read and write operations per second.
Disk Latency: Average read and write latency for disk operations.
Disk Throughput: Bytes read from and written to disk per second.
Disk Space: Disk space used and available on the shard.
Data Size: Uncompressed size of user data held on the shard, summed across databases. This chart is empty if database statistics collection is disabled for the project.
Workload
Query and operation throughput metrics per shard:
Connections: Number of active client connections to the shard.
Opcounters: Rate of insert, query, update, delete, getmore, and command operations per second.
Queues: Number of operations waiting to acquire the global lock.
Replication Lag: Delay in milliseconds between the primary and secondaries during replication.
Read Latency: Average execution time of read operations on the shard.
Write Latency: Average execution time of write operations on the shard.
Command Latency: Average execution time of command operations on the shard.
Cache
Storage engine cache usage and efficiency per shard:
Cache Fill Ratio: Percentage of the configured storage engine cache currently in use. A ratio near 100% indicates that the working set is larger than the cache.
Dirty Fill Ratio: Percentage of the configured storage engine cache holding modified pages not yet written to disk. A high ratio can indicate write overload.
Cache Hit Ratio: Percentage of page requests served from the storage engine cache without reading the page from disk.
Data Distribution
Per-shard data size, document counts, and chunk distribution for sharded collections:
Owned Data Size: Size of data owned by each shard, summed across sharded collections.
Orphaned Data Size: Size of orphaned data on each shard, summed across sharded collections.
Owned Document Count: Number of documents owned by each shard, summed across sharded collections.
Orphaned Document Count: Number of orphaned documents on each shard, summed across sharded collections.
Chunk Count: Number of chunks on each shard across sharded collections.
Jumbo Chunk Count: Number of jumbo chunks on each shard. The balancer cannot migrate jumbo chunks.
These metrics help you identify performance bottlenecks, capacity issues, and data distribution imbalances across your shards.
Shards Table
The shards table below the charts lists each shard with its status, data size, average and maximum CPU usage, reads per second, and writes per second for the selected time range. The table controls which shards appear in the charts. To choose which columns the table displays, click Edit Columns.
To open a detail panel for a shard, click its row. The panel displays the shard's active alerts and overview metrics, including the number of sharded collections, average read and write load, average operation execution time, cache activity, and range deleter activity.
Time Range Selection
Select a time range to view historical metrics:
Preset Ranges: Choose from 1 hour, 8 hours, 12 hours, 24 hours, 3 days, 7 days, 30 days, 60 days, or 90 days.
Custom Range: Select specific start and end dates and times using the Filter by Date and Time picker.
To zoom into a specific time window, drag across a chart. To return to the selected time range, click Reset zoom.
Historical data helps you identify trends, track changes over time, and correlate issues with specific events.
Shard Key Advisor
Atlas provides Shard Key Analyzer, a tool that helps you analyze and select optimal shard keys for your collections. Access Shard Key Advisor through Performance Advisor to evaluate candidate shard keys based on your cluster's query patterns and workload characteristics.
You can also open Shard Key Advisor from the Recommendations card on the Sharding Insights page by clicking Analyze Shard Keys.
To use Shard Key Advisor, you must have any data access role, such as Project Data Access Read Only, or the Project Sharding Manager role.
The analyzer appears in the Performance Advisor alongside sharding recommendations and provides immediate analysis of:
Cardinality: Uniqueness of values in candidate fields.
Monotonicity: Whether field values increase or decrease over time.
Frequency: Distribution of values across the field.
You can optionally enable query sampling for deeper insights into read and write distribution patterns.
Prerequisites
To use Sharding Insights, your cluster must meet the following requirements:
Cluster Configuration: Sharded cluster (not available for replica sets).
MongoDB Version: MongoDB 8.0 or later.
Cluster Tier:
M10cluster tier or higher.Project Settings: Sharding Insights is enabled by default. If the Sharding Insights page doesn't display in the cluster sidebar, confirm that the setting is enabled in Project Settings.
Environment: Commercial Atlas deployments only.
Behavior
The page preserves your view settings, including the time range, selected metrics, node filter, and selected shards, in the page URL. This allows you to bookmark specific views or share URLs with your team.
If you access Sharding Insights on a cluster that doesn't meet the prerequisites, Atlas displays a banner explaining why the feature is unavailable instead of the Sharding Insights page.
Limitations
Sharding Insights has the following limitations in this release:
Deployment Support
Sharding Insights does not support:
Replica set deployments (only sharded clusters).
Clusters running MongoDB versions earlier than 8.0.
Clusters on tiers below
M10.Clusters using Atlas Data Regionalization.
Cloud Manager or Ops Manager deployments.
Government cloud environments.
API and Automation Support
This release does not support:
Atlas Administration API access to Sharding Insights data.
Terraform provider support for Sharding Insights configuration.
MongoDB MCP Server integration for Sharding Insights metrics.
These capabilities might be added in future releases.
Important Considerations
Before you act on recommendations or make sharding changes, review these important considerations:
Sharding Decisions
Permanent Change: Converting a replica set to a sharded cluster is a permanent architectural decision that cannot be reversed.
Planning Required: Review the sharding documentation and plan your shard key strategy before you shard a collection.
Shard Key Selection: Choose a shard key that supports your query patterns and provides good data distribution. See Choose a Shard Key to evaluate potential shard keys.
Test Before Production: Test your application with the selected shard key on a sharded cluster before applying it to production. Moving from a replica set to a sharded cluster may expose differences in functionality and performance. Validate that your application handles these differences appropriately.
Write Operation Semantics
Sharded clusters have different write operation semantics than replica sets:
Multi-Document Operations: Use
updateMany()anddeleteMany()only for idempotent writes on sharded collections. These operations may execute more than once on some documents if there are network errors or failovers during execution.Retryable Writes: MongoDB provides retryable writes for single-document operations to handle transient failures, but multi-document operations require careful design.
Write Concern: Review your application's write concern settings to ensure they align with your durability requirements in a sharded environment.
Review the sharding operational restrictions before you shard your cluster.
Network Considerations
PrivateLink Impact: If your cluster uses PrivateLink, converting from a replica set to a sharded cluster will completely block connectivity to the shards. Your application will experience downtime until it is restarted and reconnects to the
mongosrouter.Connection Updates: When you convert from a replica set to a sharded cluster, your application must restart to reconnect to the
mongosrouter. If your application uses an SRV connection string, no changes to the connection string are needed, but the application restart is still required. Adding shards to an existing sharded cluster does not require an application restart.
Collection Movement Constraints
When you move collections between shards:
One at a Time: Only one collection can be moved at a time.
No Write Blocking: Collection moves use resharding, which allows write operations to continue during the move.
Destination Capacity: The destination shard must have sufficient storage and resource capacity.
Operation Time: Large collections might take significant time to move.
Learn More
To learn more about sharding concepts, recommendations, and cluster management, see: