With the completion of
SERVER-20944 the results of the connPoolStats command are no longer correct. The command must be changed to collect statistics from all executors in the TaskExecutor pool, for sharded systems. Rather than reporting on each connection pool individually, since many of these pools are sharing workloads, connPoolStats should aggregate and report information from all connection pools within the server.
This work changes the output format of the command to the following:
This new format is similar to the 3.0 formatting, but differs in the following ways:
- the reported stats are aggregated across all connection pools in the server
- the createdByType field has been removed (see
- a new field, totalInUse, reports the number of connections currently in use across all pools
- within each host's stats, the new inUse field reports the number of connections currently in use across all pools for this particular host
SERVER-21674 documents a possible future feature to report connection stats separately for each connection pool instead of aggregating these statistics.