Database Reference
In-Depth Information
Utilizing the mongos or query router
The query router or mongos process is the interface for client and applications, that is, the
application will send the request to the mongos process, and it will route the request to the
corresponding shard. After completing the operation, mongos will send the result to the
client. The point of having query routers in sharded clusters is to divide the load between
different mongod processes. A sharded cluster can have one or more query routers, and for
a production deployment, it would be better to have more than one query router.
The following diagram shows you the relationship between different components of a
sharded cluster in a production environment:
Search WWH ::




Custom Search