Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-4114

Reduce contention on topology description

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • 1.20.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      The `mongoc_topology_t` contains a topology description that is updated to reflect the known status of the database topology. For each server, a thread will be spawned to monitor that server's status. These threads all contend to keep the topology description up-to-date. Additionally, the SRV monitor thread can also update the topology concurrently.

      All operations that access the topology are guarded by a single mongoc_topology_t::mutex, so a single thread locking this mutex can bring every client thread to a halt while it performs necessary updates.

            Assignee:
            colby.pike@mongodb.com Colby Pike
            Reporter:
            colby.pike@mongodb.com Colby Pike
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: