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

ftdc_connection_reuse.js considers dropped connections from other hosts

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc4
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Service Arch
    • Fully Compatible
    • ALL
    • v8.0
    • Service Arch 2024-04-29
    • 13

      FTDC metrics per pool currently looks like this:

      "NetworkInterfaceTL-TaskExecutorPool-0" : {
          "poolInUse" : 3,
          "poolWasUsedOnce" : 0,
          "poolConnUsageTimeMillis" : 10,
          "ip-10-128-56-199.ec2.internal:20040" : {
              "inUse" : 0
          },
          "ip-10-128-56-199.ec2.internal:20041" : {
              "inUse" : 0
          },
          "ip-10-128-56-199.ec2.internal:20042" : {
              "inUse" : 0
          },
          "ip-10-128-56-199.ec2.internal:20043" : {
              "inUse" : 3
          }
      }

      Each host currently has metrics for inUse, while each pool also has a poolInUse and a poolWasUsedOnce. We could add a wasUsedOnce metric to FTDC for each host, and this assert.soon could depend on the host's wasUsedOnce instead of a pool-wide poolWasUsedOnce.

      The easier fix here would be to just relax the assert.soon and add a comment considering it's possible that the connection servicing {find:"shards"} or other queries may add 1 or more to the poolWasUsedOnce connection count.

            Assignee:
            alex.li@mongodb.com Alex Li
            Reporter:
            alex.li@mongodb.com Alex Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: