Add request-queue-depth metric

Description

introduced a borrow queue to a Host that is used when there are no available connections. It could be nice to have a method on Session.State to request the size of that queue, similar to getInFlightQueries(Host).

Resolution: Since adding a method to Session.State would break API compatibility, we decided to only add this as Metrics.getRequestQueueDepth() (request-queue-depth)

Environment

None

Pull Requests

None

Activity

Show:
Andy Tolbert
February 8, 2017, 2:32 PM

Discussion from google groups: https://groups.google.com/a/lists.datastax.com/forum/#!topic/java-driver-user/DPCqdbw0XcA

Andy Tolbert
February 8, 2017, 2:33 PM

Might also be good to add a meter to Metrics to monitor when requests get queued globally. We could also take it a step further and also monitor when a borrow request times out.

Fixed

Assignee

Andy Tolbert

Reporter

Andy Tolbert

Labels

None

PM Priority

None

Affects versions

None

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Priority

Major
Configure