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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 2.0.9, 2.2.4, 2.4.3
    • None
    • Sharding, Stability
    • None
    • CentOS release 6.4 (Final) x86_64
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: