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

  • Home
  • SEARCH
  • 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 8525819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:05:35+00:00 2026-06-11T08:05:35+00:00

I have a Mongo cluster with 2 shards, RS1 and RS2. RS1 has about

  • 0

I have a Mongo cluster with 2 shards, RS1 and RS2. RS1 has about 600G (*), RS2 about 460G. A few minutes ago, I added a new shard, RS3. When I connect to mongos and check status, here is what I see:

mongos> db.printShardingStatus()
--- Sharding Status --- 
  sharding version: { "_id" : 1, "version" : 3 }
  shards:
        {  "_id" : "RS1",  "host" : "RS1/dbs1d1:27018" }
        {  "_id" : "RS2",  "host" : "RS2/dbs1d2:27018" }
        {  "_id" : "RS3",  "host" : "RS3/dbs3a:27018" }
  databases:
        {  "_id" : "admin",  "partitioned" : false,  "primary" : "config" }
        {  "_id" : "demo",  "partitioned" : false,  "primary" : "RS1" }
        {  "_id" : "cm_prod",  "partitioned" : true,  "primary" : "RS1" }
                cm_prod.profile_daily_stats chunks:
                                RS2     16
                                RS1     16
                        too many chunks to print, use verbose if you want to force print
                cm_prod.profile_raw_stats chunks:
                                RS2     157
                                RS1     157
                        too many chunks to print, use verbose if you want to force print
                cm_prod.video_latest_stats chunks:
                                RS1     152
                                RS2     153
                        too many chunks to print, use verbose if you want to force print
                cm_prod.video_raw_stats chunks:
                                RS1     3257
                                RS2     3257
                        too many chunks to print, use verbose if you want to force print
          [ ...various unpartitioned DBs snipped...]

So, the new RS3 shard appears in the list of shards, but not in the list of “how many chunks does each shard have”. I would have expected it to appear in that list with a count of 0 for all sharded collections.

Is this expected behavor that will sort itself out if I want a bit?

  • 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-11T08:05:36+00:00Added an answer on June 11, 2026 at 8:05 am

    It will start to have chunks moved over to it, yes, in fact it will be the default target for every chunk move for the foreseeable future (basic selection is to move from shard with most to the shard with least chunks). Each shard primary can only take part in a single migration at a time, so with that many chunks to move it is going to take some time, especially if the other two are busy.

    I have seen cases where people have turned off the balancer and forgot about it. Given that your other 2 shards are balanced pretty well, I don’t think that is the case here, but just in case….

    You can check on the status of the balancer by connecting to the mongos and then doing the following:

    use config;
    db.settings.find( { _id : "balancer" } )
    

    Make sure that “stopped” is not set to true.

    To see what is holding the lock, and hence balancing at that time:

    use config;
    db.locks.find({ _id : "balancer" });
    

    Finally, to check what the balancer is actually doing, look at the mongos log on that machine. The balancer outputs rows to the log prefixed by [Balancer]. You can also look for migration messages in the logs of the primary mongod instances in the logs.

    EDIT: This was likely caused by SERVER-7003 – a bug found in 2.2.0 post release. If there are deletes in the range (chunk) being migrated from the source shard, it can sometimes cause this sort of paralysis where all chunk migrations are aborted and the target shard appears to always be taking part in a migration, when in fact it is not.

    Since this has been fixed in 2.2.1 an upgrade is the recommended path to resolve the issue. Though it can be resolved by restarts and/or when the bad state on the target shard resolves itself, as seems to be the case in the comments below.

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

Sidebar

Related Questions

I have a mongo collection which has documents with two fields fieldA and fieldB,
im new with mongo and so far have no issue using it. Until i
I have a sharded cluster which has a replica set sharded, my application layer
I have a mongo table that has statistical data like the following.... course_id status
I have a few Mongo queries in the JS format, such as: db.hello.update(params,data); How
I have a Mongo collection called documents which has the following structure: { name:
We have a Mongo database with about 400,000 entries, each of which have a
I have a Mongo collection where each document has a set of unique embedded
I have mongo documents in this format. {_id : 1,Summary : {...},Examples : [{_id
I have a mongo database where I'm storing a date and time in separate

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.