Java driver takes a long time detecting an unresponsive mongos

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Java Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Hello,

      We have run into performance issues with applications taking a long time (minutes) noticing an unresponsive mongos and switching to another one (our mongos are registered in a _mongodb._tcp SRV record).

      Trying to tweak socketTimeoutMS has the inconvenient of false positives on slow queries. Could there be another system in the driver that would allow proactively monitoring mongos reactivity? Thanks in advance.

      We also tried setting kernel-level tcp_keepalive_time, probes, intvl much more aggressively, but this did not change the outcome. 

      We're using MongoDB 8.0.20 and the Mongo Java driver 5.3.1.

      Thanks in advance,

        1. application_logs.json.txt
          5 kB
          Colin Leroy-Mira (EXT)

            Assignee:
            Almas Abdrazak
            Reporter:
            Colin Leroy-Mira (EXT)
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: