Expand description
Production-ready async connection pool for VoltDB.
§Features
- Thread-safe with fine-grained locking
- Connection state machine (Healthy, Unhealthy, Reconnecting)
- Per-connection circuit breaker
- Configurable exhaustion policy (FailFast or Block with async waiting)
- Graceful shutdown with drain mode
- Optional structured logging (
tracingfeature) - Optional metrics (
metricsfeature)
§Design
- Pool lock only guards metadata (state, circuit breaker)
- Each AsyncNode has its own lock for I/O operations
- Network I/O never holds the pool lock
Structs§
- Async
Pool - Thread-safe async connection pool for VoltDB.
- Async
Pool Config - Async pool configuration.
- Async
Pool Stats - Pool statistics snapshot.
- Async
Pooled Conn - A connection handle from the async pool.
Enums§
- Async
Pool Error - Pool-specific error conditions.
- Circuit
- Per-connection circuit breaker state.
- Conn
State - Connection health state.
- Exhaustion
Policy - What to do when all connections are busy.
- Validation
Mode - How to handle startup connection failures.