Skip to main content

Module pools

Module pools 

Source
Expand description

Database pool series: the connection gauges and the acquire-failure counter.

Structs§

PoolUsage
Open and idle connections of one pool, or the sum over several.

Enums§

AcquireFailure
PoolKind

Functions§

record_acquire_error
Counts a failed acquisition; only a pool timeout is a pool failure.
record_acquire_failure
record_connections
Sets both state gauges of pool from usage.
run_pool_sampler
Samples every 15 s until the process, and so the task, ends.
sample_pools
Publishes the live pools; a tenant pool that left the registry no longer counts.