Some successful connection attempts are counted in metrics before the ready-connection handler later drops them.
Code permalink:
|
} else if evt.requested_shard.is_some() { |
Several paths can drop connections without decrementing the active connection gauge, including wrong-shard shard-aware retries, excess-pool clearing, and resharding. With metrics enabled, the total connection count can remain permanently above the actual number of live connections.
Suggested direction: balance the active-connection metric for every path that drops a previously-counted successful connection.
Some successful connection attempts are counted in metrics before the ready-connection handler later drops them.
Code permalink:
scylla-rust-driver/scylla/src/network/connection_pool.rs
Line 886 in e04a12a
Several paths can drop connections without decrementing the active connection gauge, including wrong-shard shard-aware retries, excess-pool clearing, and resharding. With metrics enabled, the total connection count can remain permanently above the actual number of live connections.
Suggested direction: balance the active-connection metric for every path that drops a previously-counted successful connection.