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

"Operation timed out" when enableSharding on large collection in Microsoft Azure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 3.2.5
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Operating System:
      ALL

      Description

      We've set up a MongoDB 3.2.5 cluster on Microsoft Azure with 3 shards (each a replica sets with 3 servers) and a 3-server config set. We access the cluster via a router.

      Filling and sharding smaller collections (~400 million documents) worked with sh.shardCollection(). However, after filling a new collection with ~1.8 billion documents we tried to shard this new collection but keep getting the following error:

      { "code" : 50, "ok" : 0, "errmsg" : "Operation timed out" }

      Note: At first we also had timeouts with count() and chunk balancing. After decreasing the TCP keepalive on all servers in the cluster below 240 seconds (the Microsoft Azure timeout) - based on the info at https://docs.mongodb.org/manual/faq/diagnostics/#does-tcp-keepalive-time-affect-mongodb-deployments - counting and balancing worked again. However, sharding our big collection still does not work.

      Might be connected to Issue SERVER-22392

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: