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

primary shard gets most of the queries

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.4.2
    • Sharding

    Description

      does anyone know why the primary shard gets most (95%) of the queries?

      mongostat shows that the primary mongod of the primary shard gets 400 qps and the primary mongod of the other shard gets only around 20 qps

      shard key is

      { _id: 'hashed' }

      and queries do not use the shard key, but data should be uniformly balanced on both shards
      current chunk ratio between these 2 shards is 703 : 704

      this is a test environment, so nothing else is running on these servers

      if i "movePrimary" to another shard, then that's the one that will get most of the queries..

      Attachments

        Activity

          People

            Unassigned Unassigned
            pcmaniac Nemanja Dubravac
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: