Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-2469

Add durations to connection pool events

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Component/s: CMAP
    • None
    • Needed
    • Hide

      https://github.com/mongodb/specifications/pull/1448

      1. ConnectionReadyEvent/ConnectionCheckedOutEvent/ConnectionCheckOutFailedEvent.duration was added.
      2. Tests in source/connection-monitoring-and-pooling/tests/logging were updated.
      Show
      https://github.com/mongodb/specifications/pull/1448 ConnectionReadyEvent / ConnectionCheckedOutEvent / ConnectionCheckOutFailedEvent.duration was added. Tests in source/connection-monitoring-and-pooling/tests/logging were updated.
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-4688 Won't Fix
      CXX-2719 Won't Fix
      CSHARP-4722 Done 2.22.0
      GODRIVER-2910 Fixed 1.15.0
      JAVA-5076 Done 4.11.0
      NODE-5459 Fixed bson-6.8.0
      MOTOR-1158 Duplicate
      PYTHON-3841 Fixed 4.7
      PHPLIB-1200 Works as Designed
      RUBY-3302 Blocked
      RUST-1707 Fixed 2.8.0
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion CDRIVER-4688 Won't Fix CXX-2719 Won't Fix CSHARP-4722 Done 2.22.0 GODRIVER-2910 Fixed 1.15.0 JAVA-5076 Done 4.11.0 NODE-5459 Fixed bson-6.8.0 MOTOR-1158 Duplicate PYTHON-3841 Fixed 4.7 PHPLIB-1200 Works as Designed RUBY-3302 Blocked RUST-1707 Fixed 2.8.0

      Users have asked for the ability to measure the duration of some processes that the connection pool performs that can contribute to increased latency, increased errors, or other issues if not monitored and tuned correctly. Those requested measurements are:

      • The checkout duration.
      • The total amount of time a new connection took to establish (i.e. the time between requesting a new connection and the new connection being ready to send application operations on).

      Examples of users requesting the feature:

      • A connection pool prototype developed by a customer adds a Duration field to the PoolEvent that returns the connection check-out duration.
      • A recent forum post asked about the ability to monitor the number of connections in connection pools. However, what they really wanted was to be able to tune the max pool size to maximize performance, which is best tuned by monitoring the check-out latency.

      Add the ability to measure the listed durations via the PoolEvent events API.

            Assignee:
            valentin.kovalenko@mongodb.com Valentin Kavalenka
            Reporter:
            matt.dale@mongodb.com Matt Dale
            Jeffrey Yemin Jeffrey Yemin
            Tom Selander Tom Selander
            Votes:
            3 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated: