| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Arbiter.Core.PoolConfig
Description
Connection pool configuration.
Synopsis
- data PoolConfig = PoolConfig {
- poolSize :: Int
- poolIdleTimeout :: Int
- poolStripes :: Maybe Int
- defaultPoolConfig :: PoolConfig
- poolConfigForWorkers :: MonadIO m => Int -> m PoolConfig
Documentation
data PoolConfig Source #
Connection pool configuration.
Constructors
| PoolConfig | |
Fields
| |
Instances
| Show PoolConfig Source # | |
Defined in Arbiter.Core.PoolConfig Methods showsPrec :: Int -> PoolConfig -> ShowS # show :: PoolConfig -> String # showList :: [PoolConfig] -> ShowS # | |
| Eq PoolConfig Source # | |
Defined in Arbiter.Core.PoolConfig | |
defaultPoolConfig :: PoolConfig Source #
Default pool configuration: 10 connections, 300s idle timeout, 1 stripe.
Conservative defaults suitable for producer-only workloads. For worker pools,
use poolConfigForWorkers to size the pool based on worker count.
poolConfigForWorkers :: MonadIO m => Int -> m PoolConfig Source #
Creates a pool configuration sized for a worker pool.
Sizing: workerCount + 5 connections (worker threads plus headroom for
dispatcher and heartbeats). Stripes set to min(capabilities, poolSize).