Urara-Blog/node_modules/.pnpm-store/v3/files/a8/35146b6fffa7380e9af9e72878831c6268d29b9b04e1013856227b08035170910f3cf2158d8f2e2e068e81d6bab8dfd0fb2c85cd0671db4a43c4de07a9090c
2022-08-14 01:14:53 +08:00

35 lines
775 B
Text

# Class: PoolStats
Aggregate stats for a [Pool](Pool.md) or [BalancedPool](BalancedPool.md).
## `new PoolStats(pool)`
Arguments:
* **pool** `Pool` - Pool or BalancedPool from which to return stats.
## Instance Properties
### `PoolStats.connected`
Number of open socket connections in this pool.
### `PoolStats.free`
Number of open socket connections in this pool that do not have an active request.
### `PoolStats.pending`
Number of pending requests across all clients in this pool.
### `PoolStats.queued`
Number of queued requests across all clients in this pool.
### `PoolStats.running`
Number of currently active requests across all clients in this pool.
### `PoolStats.size`
Number of active, pending, or queued requests across all clients in this pool.