Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-11131

Recommend setting maxTimeMS and document timeout behavior for mongos

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: Server
    • Labels:
      None

      We had a lengthy discussion with engineering about the behavior of mongos on timeout. It appears that the mongos and drivers rely heavily on the maxTimeMS cursor and connection level setting. Drivers do not monitor this and rely on the server/mongos to terminate connections on erratic server behavior.

      This should be documented because developers should care (or at least think) about timeout failure situations. Additionally, we should recommend setting the maxTimeMS setting at the driver level when using sharded clusters.

      Details here:
      https://jira.mongodb.org/browse/HELP-5417

            Assignee:
            Unassigned Unassigned
            Reporter:
            justin.labreck@mongodb.com Justin LaBreck
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              1 year, 29 weeks, 2 days ago