[DRIVERS-2469] Add durations to connection pool events Created: 04/Oct/22  Updated: 25/Aug/23

Status: Implementing
Project: Drivers
Component/s: CMAP
Fix Version/s: None

Type: New Feature Priority: Unknown
Reporter: Matt Dale Assignee: Valentin Kavalenka
Resolution: Unresolved Votes: 3
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Gantt End to End
has to be finished together with DRIVERS-2707 Relax the CMAP documentation requirem... Implementing
Issue split
split to GODRIVER-2910 Add durations to connection pool events Backlog
split to NODE-5459 Add durations to connection pool events Backlog
split to PYTHON-3841 Add durations to connection pool events Blocked
split to RUBY-3302 Add durations to connection pool events Blocked
split to CDRIVER-4688 Add durations to connection pool events Closed
split to CSHARP-4722 Add durations to connection pool events Closed
split to CXX-2719 Add durations to connection pool events Closed
split to JAVA-5076 Add durations to connection pool events Closed
split to MOTOR-1158 Add durations to connection pool events Closed
split to PHPLIB-1200 Add durations to connection pool events Closed
split to RUST-1707 Add durations to connection pool events Closed
Problem/Incident
causes DRIVERS-2707 Relax the CMAP documentation requirem... Implementing
Driver Changes: Needed
Quarter: FY24Q3
Downstream Changes Summary:

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.
Engineering Lead: Jeffrey Yemin Jeffrey Yemin
Program Manager: Tom Selander Tom Selander
Start date:
Driver Compliance:
Key Status/Resolution FixVersion
CDRIVER-4688 Won't Fix
CXX-2719 Won't Fix
CSHARP-4722 Done
GODRIVER-2910 Backlog
JAVA-5076 Done 4.11.0
NODE-5459 Backlog
MOTOR-1158 Duplicate
PYTHON-3841 Blocked
PHPLIB-1200 Works as Designed
RUBY-3302 Blocked
RUST-1707 Fixed 2.8.0

 Description   

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.



 Comments   
Comment by Githook User [ 09/Aug/23 ]

Author:

{'name': 'Valentin Kovalenko', 'email': 'valentin.kovalenko@mongodb.com', 'username': 'stIncMale'}

Message: DRIVERS-2469 Add durations to connection pool events (#1448)

DRIVERS-2469
Branch: master
https://github.com/mongodb/specifications/commit/8e8db00b7fe8c573121aa733aa09228e2a2a4cf3

Generated at Thu Feb 08 08:25:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.