- Sharding >
- Sharding Concepts >
- Sharded Cluster Architectures >
- Production Cluster Architecture
Production Cluster Architecture¶
In a production cluster, you must ensure that data is redundant and that your systems are highly available. To that end, a production cluster must have the following components:
- Three Config Servers
Each config server must be on separate machines. A single sharded cluster must have exclusive use of its config servers. If you have multiple sharded clusters, you will need to have a group of config servers for each cluster.
- Two or More Replica Sets As Shards
These replica sets are the shards. For information on replica sets, see Replication.
- One or More Query Routers (
mongos
) The
mongos
instances are the routers for the cluster. Typically, deployments have onemongos
instance on each application server.You may also deploy a group of
mongos
instances and use a proxy/load balancer between the application and themongos
. In these deployments, you must configure the load balancer for client affinity so that every connection from a single client reaches the samemongos
.Because cursors and other resources are specific to an single
mongos
instance, each client must interact with only onemongos
instance.
- One or More Query Routers (

See also