Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (47.6k points)

While I was looking into the MongoDB documentation, I found two different terms mongod and mongos.

While starting the server, I am using ./mongod --dbpath <path to mongodb> and I am running ./mongo to connect to the server.

Can someone please clarify the differences between these two terms.

2 Answers

0 votes
by (106k points)

The difference between mongod and mongoose is as follows: 

mongod is the daemon, mongo is the client, mongos is the 'MongoDB Shard Utility'. Take a look at man mongos.

0 votes
by (108k points)

Mongos is the MongoDB Shard Utility which is considered to be the controller and query router for sharded clusters. Sharding helps in partitioning the data-set into discrete parts.

Mongod is the primary daemon method for the MongoDB system. It helps in handling the data requests, managing the data access, and performing background management operations.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
2 answers
0 votes
2 answers

Browse Categories

...