MongoDB Limits

MongoDB is a source-available cross-platform document-oriented database program for high-volume storage. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas.


Managed Database Cluster Limits

  • By default, you are limited to 10 clusters per account or team. If you reach this limit but need to create more database clusters, you can submit a request for a higher limit by clicking “Request Increase” on the window that shows when you attempt to create another cluster.

  • You cannot resize cluster nodes to smaller sizes. To move from a bigger node to a smaller node, create a new cluster with the desired node size and import your data.

  • You cannot delete the default database and user.

  • Point-in-time-recovery (PITR) is limited to the last 7 days.

  • VPC networks are only available to resources, accounts, and teams in the same region as the VPC network.

  • By default, database clusters only support up to 100 IP addresses as trusted sources. Different types of resources add varying numbers of IP addresses to your cluster. For example, Droplets typically have two IP addresses, one public and one private, both of which count towards the 100-address maximum. To add more than 100 IP addresses, contact support.

  • You cannot migrate databases from clusters inside of DigitalOcean to other clusters inside of DigitalOcean using the online migration feature.

  • You currently cannot add IPv6 rules to a database cluster’s trusted sources.

  • When you restore from a backup, you must restore to a new node and re-add any read-only or standby nodes. See How to Restore from Backups for details.

MongoDB Limits

  • Each cluster is limited to 3 nodes.

  • We only support MongoDB versions 5.0, 6.0, and 7.0.

  • DigitalOcean Managed Databases MongoDB clusters do not support the following features:

    • Query statistics
    • Read-only nodes
    • Connection pooling
    • Current and long-running queries
  • To maintain cluster stability, users cannot access the superuser role.

  • You cannot add users to a MongoDB cluster using the mongo shell. Users must be added to the cluster using the DigitalOcean Control Panel.

  • DigitalOcean Managed MongoDB does not support server-side Javascript. We support MongoDB’s more recent and secure Aggregation Pipeline framework.

  • MongoDB clusters cannot be migrated to other regions at this time.

  • You cannot resize cluster nodes to smaller sizes. To move from a bigger node to a smaller node, create a new cluster with the desired node size and import your data.

  • MongoDB clusters suffer severe issues when their disk space becomes completely full. To prevent this, we block further writes to a cluster when its disk reaches 97% capacity. To remove this block, see our support article.

  • MongoDB does not support the option to select a cluster’s storage size independently from its configuration plan.

  • MongoDB does not support accessing database metrics via an API endpoint.

  • MongoDB does not support log forwarding to Rsyslog.

Known Issues

Managed Database Cluster Known Issues

  • You currently cannot manage access control lists (ACLs), even with 3rd-party clients.

  • You can’t use DigitalOcean’s Cloud Firewalls with managed databases. Until support is available, you can restrict access to nodes by their incoming IPv4 addresses. You can also add Droplets and other resources by their names or tags to a cluster’s trusted sources.