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

DNS resolution while connecting to peer was slow

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 5.0.22
    • Component/s: Networking
    • Labels:
      None
    • Environment:
      Platform - GCP VM
      CPU - x86
      OS - Ubuntu 20.04.5 LTS
    • Server Security
    • ALL
    • Security 2024-05-13, Security 2024-05-27

      We are using a sharded cluster of version 5.0.22. Recently, we have experienced that mongos reported the error "DNS resolution while connecting to peer was slow" for several times, which lasted about dozens of minutes each time. During this period, the cluster performance degraded significantly.
      All shards and config servers hostname are added to /etc/hosts. We wonder why mongos still went to DNS instead of having got the address directly from the hosts file.

      We find the Jira (https://jira.mongodb.org/browse/SERVER-53662) here with very similar symptom. According to the records, it linked to another one (https://jira.mongodb.org/browse/SERVER-59876). I do not know if they are related, but it doesn't look like the issue has been fixed.

      Platform - GCP VM
      CPU - x86
      OS - Ubuntu 20.04.5 LTS

            Assignee:
            varun.ravichandran@mongodb.com Varun Ravichandran
            Reporter:
            sh5dragon5@hotmail.com Tianlei Mou
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: