Skip to content

Commit 71f5c04

Browse files
jmd-mongorkimura21
andauthored
DOCS-15357 Count how many pooled connections are created, but never used (#1217)
* DOCS-15357 Count how many pooled connections are created, but never used * external review feedback * Update source/reference/command/connPoolStats.txt Co-authored-by: Réo Kimura <[email protected]> Co-authored-by: Réo Kimura <[email protected]>
1 parent b943e39 commit 71f5c04

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

source/reference/command/connPoolStats.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,13 @@ Output
338338
members of the :term:`sharded cluster` or :term:`replica set` that
339339
are currently being refreshed.
340340

341+
.. data:: connPoolStats.totalWasNeverUsed
342+
343+
Reports the total number of outgoing connections from the
344+
current :binary:`~bin.mongod`/:binary:`~bin.mongos` instance to other
345+
members of the :term:`sharded cluster` or :term:`replica set` that
346+
were closed having never been used.
347+
341348
.. data:: connPoolStats.replicaSetMatchingStrategy
342349

343350
.. versionadded:: 5.0 (*Also available starting in 4.4.5 and 4.2.13*)
@@ -455,6 +462,11 @@ Output
455462

456463
Displays the DBClient-based pool statistics.
457464

465+
.. data:: connPoolStats.pools.[pool].poolWasNeverUsed
466+
467+
Displays the number of connections in this connection pool
468+
that were closed having never been used.
469+
458470
.. data:: connPoolStats.hosts
459471

460472
Reports on connection statistics (in
@@ -478,6 +490,12 @@ Output
478490
Reports the number of connections to the ``[host]``
479491
that are currently in use.
480492

493+
.. data:: connPoolStats.hosts.[host].wasNeverUsed
494+
495+
Reports the total number of outgoing connections from ``host`` to
496+
other members of the :term:`sharded cluster` or
497+
:term:`replica set` that were closed having never been used.
498+
481499
.. data:: connPoolStats.replicaSets
482500

483501
Contains :term:`documents <document>` that represent a report of

0 commit comments

Comments
 (0)