Typo in `rescanIntervalSrvMS` causes spike in DNS lookups

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.4.0
    • Affects Version/s: 3.3.5
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      From this GitHub PR

      We started seeing a sudden spike in CPU usage once we switched to a certain mongodb+srv / sharding combination.

      It turns out there is a bug in srv_polling.js that tries to access the wrong variable name (due to a capitalization error), which meant the rescan interval was undefined i.e. 0.

      In our production system, this means our server performs millions of DNS requests per hour to our mongodb srv records (many thousand per second), which is costly and breaks server monitoring in various ways.

            Assignee:
            Matt Broadstone
            Reporter:
            Matt Broadstone
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: