Serverless Instance Limits
On this page
- Unsupported Configurations
- Unsupported Actions
- Operational Limitations and Considerations
- Minimum Driver Versions for Serverless Instances
- Minimum
mongosh
Version for Serverless instances - Minimum MongoDB Compass Version for Serverless instances
- Minimum MongoDB Tools Version for Serverless instances
- Private Endpoints for Serverless Instances
Serverless instances don't currently support the Atlas features listed below. If you require these capabilities, please use a dedicated cluster.
Serverless instances don't support some features even though they are a part of the Stable API v1. We note unsupported features that are a part of the Stable API v1 inline.
MongoDB plans to add support for more configurations and actions on Serverless instances over time. Footnotes indicate that MongoDB plans to support the feature for Serverless instances in the future.
Unsupported Configurations
Currently, Serverless instances don't support the following configurations:
Multi-Region Deployments
Multi-Cloud Deployments
Sharded Deployments
Private Endpoints on Google Cloud using GCP Private Service Connect
Advanced Enterprise Security Features (including LDAP and Database Auditing)
Serverless instances do support X.509 certificates and IAM for authentication.
Unsupported Actions
Currently, Serverless instances don't support the following actions:
Convert Atlas Serverless instances into clusters. [1]
Convert Atlas dedicated clusters into Atlas Serverless instances
Live migrate into Atlas Serverless instances.
Store more than 1 TB of data.
This value includes the number of bytes of all uncompressed BSON documents stored in all collections, plus the bytes stored in their associated indexes.
Perform automated restores from backup snapshots.
Use Atlas Search.
Use Online Archive.
Use triggers.
Use predefined replica set tags.
Track database access.
Use server-side JavaScript, such as
$where
,$function
,$accumulator
andmap-reduce
.Serverless instances don't support these features even though they're a part of the Stable API v1.
Download database logs.
Use wire compression between clients and Atlas Serverless instances.
Use BI Connector.
[1] | Coming soon. |
Operational Limitations and Considerations
Additionally, Serverless instances have the following operational limitations and considerations:
Operation | Limitation | |||
---|---|---|---|---|
Aggregation and Queries | Serverless instances don't support the Serverless instances don't support the $out stage. Use $merge instead. Aggregation fields on Serverless instances that represent database and collection names (such as $merge values) can't be expressions. Serverless instances don't support these features even though they're a part of the Stable API v1. Aggregation pipelines for Serverless instances don't support
the Aggregation pipelines for Serverless instances can have a maximum of 50 stages. | |||
Sort | The $sort stage has a limit of 32 megabytes of RAM. | |||
Authentication | Serverless instances support the following authentication methods only:
| |||
Build Index with Rolling Build | Serverless instances don't support building indexes with a rolling build. | |||
Real-Time Performance Panel | Serverless instances don't provide access to the Real-Time Performance Panel. | |||
Throughput | Serverless instances don't routinely cap operation throughput. Atlas may throttle operations for your Serverless instance temporarily while the system scales. | |||
Connections | Serverless instances can support up to 500 simultaneous connections. | |||
Cursors | Serverless instances can't use the noTimeout cursor option. | |||
Database Commands | Some database commands have limitations for Serverless instances. To learn more, see Unsupported Commands in Serverless Instances. You cannot create a capped collection or convert an existing collection to a capped collection. | |||
Namespaces and Database Names | Atlas limits Serverless instance database names to 38 characters.
In addition, namespace names ( | |||
Database and Collections | Serverless instances have a maximum of 50 databases and 500 collections total. | |||
Custom Roles | Changes to custom roles may take up to 30 seconds to deploy in Serverless instances. | |||
Access to Collections in | Serverless instances don't allow:
Atlas issues an error similar to the following if you attempt to read or write to collections in these databases:
| |||
Serverless instances don't support change streams. Serverless instances don't support this feature even though it's a part of the Stable API v1. | ||||
Serverless instances don't support collation on collections, indexes, or queries. Serverless instances don't support these features even though they're a part of the Stable API v1. | ||||
BSON Nested Object Depth | Serverless instances can't store documents with more than 50 nested levels. | |||
Transaction Size | Serverless instances support multi-document transactions that are up to 700 MB in size. Atlas aborts any Serverless instance transactions that exceed 700 MB. | |||
Write Concern | Serverless instances don't support a numeric write
concern level greater than
For clusters other than |
Minimum Driver Versions for Serverless Instances
To connect to your Serverless instance using a driver, you must use at least one of the following versions:
Minimum mongosh
Version for Serverless instances
To connect to Serverless instances using mongosh
, you must use
version 1.0.0 or later.
Important
You can't connect to Serverless instances using the legacy
mongo
shell.
Minimum MongoDB Compass Version for Serverless instances
To connect to Serverless instances using MongoDB Compass, you must use version 1.28 or later.
Minimum MongoDB Tools Version for Serverless instances
To import data using the MongoDB Tools, including
mongodump
, mongorestore
, mongoexport
, and mongoimport
,
you must have MongoDB Tools version 100.10.0
or later.
Private Endpoints for Serverless Instances
You can connect up to two private endpoints per Serverless instance. To learn more about private endpoints, see Learn About Private Endpoints in Atlas.