Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2375

Typo in `rescanIntervalSrvMS` causes spike in DNS lookups

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.0
    • Affects Version/s: 3.3.5
    • Component/s: 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@mongodb.com Matt Broadstone
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: