Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-54683

Running shard with standalone Mongod and config server with single node replica

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.9.0-alpha3, 4.9.0-alpha4
    • Component/s: Sharding
    • Labels:
      None
    • Server Triage

      This is how my architecture looks like for testing / bench-marking purpose.

      1. Config server running with single node replica set (on x86 build)
      2. Single mongos (on x86 build)
      3. 4 Shards running with standalone mongods (on different build)

      I've imported 10M documents and enabled hashed Sharding. With this 10M total data size reaches up-to ~1.3 GB.  As I've applied hashed Sharding, it should balance chunk well and should start migrating the chunks over to the different shards.  But after waiting over longer period of time, it hasn't migrate single chunk over. 

      When I've converted standalone mongods to single node replica set on all of the shards, it started migrating chunks and after some time, it has precisely balanced the chunks across all shards. 

       

      My question is: 

      1. was running standalone mongod on each shard was an issue?
      2. Running sharded cluster components in different environments  (mongos and config on one build and mongod in another build) would be causing this issue?

      Thanks!
      Viraj

            Assignee:
            backlog-server-triage [HELP ONLY] Backlog - Triage Team
            Reporter:
            virajthakrar@gmail.com Viraj Thakrar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: