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

mongos crashes with invariant error after changing taskExecutorPoolSize

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 4.2.4, 4.3.4
    • Affects Version/s: 4.2.3
    • Component/s: Sharding
    • Fully Compatible
    • ALL
    • v4.2
    • Hide

      OS: current Ubuntu 18.04

      MongoDB - Version: 4.2.3

      fcv: 4.0

      number of cfg-Servers: 3

      number of shards: 4 (PSA - Replicasets)

      number of connected mongos: 3

      Show
      OS: current Ubuntu 18.04 MongoDB - Version: 4.2.3 fcv: 4.0 number of cfg-Servers: 3 number of shards: 4 (PSA - Replicasets) number of connected mongos: 3
    • Service Arch 2020-02-24, Service Arch 2020-03-09

      Hi, we are running a sharded cluster on Ubuntu 18.04. (amd64) it was recently upgraded from version 4.0.x to 4.2.3. The cluster's fcv is still set to 4.0.

      After facing some performance issues we increased the taskExecutorPoolSize on the mongos to match the number of cores in the servers. This gave us a huge boost in query performance using 4.0.x. After the Upgrade the mongos process crashes after a few seconds using the same configuration. 

      mongos.conf tmp.log

      Removing the taskExecutorPoolSize entry solves the issue, but gives us poor query performance. (4 times slower on a quad core system).

      We also tried a clean install in a test-environment on the same OS and DB version, with an empty Database and got the same error.

        1. mongos.conf
          0.4 kB
          Anton Papp
        2. tmp.log
          0.2 kB
          Anton Papp

            Assignee:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Reporter:
            toni.papp@gmail.com Anton Papp
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: