Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8768081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:58:49+00:00 2026-06-13T16:58:49+00:00

A MongoDB instance can have different roles: Config server Router (mongos) Data server Arbiter

  • 0

A MongoDB instance can have different roles:

  • Config server
  • Router (mongos)
  • Data server
  • Arbiter server (for replica sets)

I know that db.serverStatus() can be used to see if an instance is a router, the process value is mongos.
But for config servers, arbiters and data nodes the process value is mongod.

Is there a simple way of distinguishing between these instance types?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:58:50+00:00Added an answer on June 13, 2026 at 4:58 pm

    I want to bring attention to one particular important issue with this question: sharding is and horizontal dimension ( several replicasets where data is distributed to ) and replicaset is a high availability solution which is represented by the composition of different mongod nodes!

    So you actually what you are trying to figure out is:

    • ReplicaSet nodes roles
    • Shard Nodes members

    In the case of a replicaSet what you might be interested in knowing is each node role. You can easily get the information without needing to connect to all the nodes of the replicaset, just run the command:

    db.isMaster()
    

    with this you will get the node members and roles of each member.

    For shard node members first of all you should never try to connect directly to the config servers. These are their to manage the distribution of chunks, chunk splits and other configuration data, relevant only for the shard cluster functionality. Avoid using those ip’s to connect to from your application.

    So if you want to have a clear view of which members compose your shard cluster, how many shards you have etc, you need to run command:

    db.printShardStatus()
    

    or

    sh.status()
    

    Please review the documentation here

    Cheers,
    N.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have mongodb running on a remote server. I can ssh to the remote
in MongoDb I can pass a predicate to an queryable instance for example DataBase.GetCollection<BsonDocument>(entity)
Can anyone provide the key conceptual differences between: MongoDB Sharding SQL Server Federated instances.
On a Spring project I'm using Spring Data MongoDB, and have 2 classes: public
I have an object that has an instance of Doctrine\ODM\MongoDB\Query\Builder . When I serialize
The windows server 2003 box hosting our MongoDB instance ran out of disk space,
I have been tasked with porting data from a MongoDB database to a MySQL
I have setup a MongoDB instance on AWS and am trying to connect to
I'm running a MongoDB instance using a Replica Set, when there are a lot
I have deployed mongodb 64 bit 2.x version on aws m1.large instance. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.