Docs Menu
Docs Home
/
MongoDB Manual
/ / /

Multi-tenant Architecture with Moveable Collections

On this page

  • Considerations
  • Learn More

New in version 8.0.

In a multi-tenant architecture, a single instance of an application serves multiple users. Multi-tenant users share resources, and generally data belonging to the same tenant is kept on a single shard.

If your multi-tenant configuration has a single tenant per database and the majority of its workload takes place on a single shard, you can move frequently-accessed collections to other shards for more even workload distribution. This reduces the number of collections on the original shard and improves performance system-wide.

Note

Non-Sharded Clusters

If your multi-tenant deployment is a replica set, you can convert it to a sharded cluster and add additional shards to more evenly distribute your workload. For more information, see either:

  • Modify a Cluster for MongoDB Atlas deployments

  • Convert a Self-Managed Replica Set to a Sharded Cluster

Back

Move a Collection