Eliminate performance bottleneck in accepting "proxied" connections.

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Networking & Observability
    • v8.1
    • N&O 2025-04-14, N&O 2025-04-28, N&O 2025-05-12
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      When a MongoDB server accepts a proxied connection, it needs to read and process the first special "proxy packet" coming on the connection. Now these reading and processing are executed on the same thread as the one accepting new connections. Executing all these operations on a single thread creates a bottleneck that limits the server's ability to open multiple clients' connections in a short period of time.

      If we move reading and processing "proxy packet" to the connection thread, this will allow to do this work concurrently on multiple threads and better utilize available resources. As a result, the server will be able to open more clients' connections in a short period of time.

       

            Assignee:
            Michael Popov
            Reporter:
            Michael Popov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: