All Products
Search
Document Center

ApsaraDB for MongoDB:Sharded cluster instances

Last Updated:Mar 28, 2026

A sharded cluster instance distributes data across multiple shard nodes. Requests from your application go to mongos nodes, which route each query or write to the correct shard. Add shard nodes to scale storage and throughput horizontally; mongos handles load balancing and failover across the cluster.

Architecture

Architecture

A sharded cluster instance consists of three component types: mongos, shard, and ConfigServer nodes.

ComponentTopologyNode countDescription
MongosStandaloneUp to 32 per instance (by default)Routes queries and writes to the corresponding shard nodes. Deploy multiple mongos nodes to distribute traffic and provide failover.
ShardReplica set (primary, secondary, and hidden nodes + read-only nodes)Up to 32 per instance (by default)Stores database data. Add shard nodes to scale out storage capacity and concurrent read and write throughput.
ConfigServerReplica set (three nodes)3Stores the metadata for each shard node, including the types of data stored in each shard node.
Important

Read-only nodes are not included in the default shard configuration and must be purchased separately. The price of a single read-only node equals that of a single shard node.

What's next