Database Reference
In-Depth Information
Note
To acquire more information about MongoDB and all its parameters, you can visit the
MongoDB documentation page at
http://docs.mongodb.org/manual/reference/program/
Learning about mongos
The
mongos
instance is responsible for routing read/write commands to shards in a
sharded cluster. In fact, all processes and applications will connect to this instance and run
queries, then the
mongos
instance will route commands to available shards. The applica-
tions will not interact with shards directly. To run the
mongos
instance, we can provide
sharded cluster configurations using a
config
file or command-line parameters.
In further chapters, we will discuss this process in detail.
Note
To gain more knowledge about the
mongos
command and its parameters, you can visit
the MongoDB documentation page at
http://docs.mongodb.org/manual/reference/pro-