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

Mongos crashes by few seconds of DB locking (or network delay).

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 2.0.9, 2.2.4, 2.4.3
    • Fix Version/s: None
    • Component/s: Sharding, Stability
    • Labels:
      None
    • Environment:
      CentOS release 6.4 (Final) x86_64
    • Operating System:
      ALL

      Description

      I run Mongos on each WEB servers.
      And I set timeout to 1 seconds for each query due to peculiar and general form of the WEB.

      I'm suffering from sudden mongos death.
      It seems like caused by delay of the query from mongos to Mongod.

      Mongos will create a thread per mongos-mongod connections.
      When some queries delayed, Mongos will create new connection and thread to handle the request from APP.
      But these new connection will be delayed while DB locking.

      So Mongos continue to create threads , and die in the end.

      I confirmed that the number of the Mongos's threads exceed more than 300 when minor network delay (less than 10 seconds).

      I think that the "thread model of Mongos" is unlikely to work well in severe situation.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              crumbjp Hiroaki
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: