tarn.js icon indicating copy to clipboard operation
tarn.js copied to clipboard

Adds additional metrics for remaining capacity, min, and max

Open iainsproat opened this issue 1 year ago • 0 comments

This PR adds three additional metrics.

numMin and numMax return the configured min and max values. This allows external services to query the configuration of the pool.

numRemainingCapacity returns the difference between the maximum value and the number of used and pending creation resources. This is particularly useful in determining whether the connection pool is saturated, i.e. there is no additional capacity.

iainsproat avatar Jun 26 '24 20:06 iainsproat