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

A sharded cluster instance consists of three component types: mongos, shard, and ConfigServer nodes.
| Component | Topology | Node count | Description |
|---|---|---|---|
| Mongos | Standalone | Up 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. |
| Shard | Replica 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. |
| ConfigServer | Replica set (three nodes) | 3 | Stores 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.