JavaScript HSM API Dinamo
    Preparing search index...

    SessionPoolConfig Interface

    Session Pool Sizing Configuration — Global per Process In this v1 (ADR-0015), resolved via HSM_SESSION_POOL_*.

    interface SessionPoolConfig {
        min: number;
        max: number;
        queueMax: number;
        queueTimeoutMs: number;
        idleTimeoutMs: number;
        autoscalingMax?: number;
    }
    Index
    min: number

    Minimum number of sessions kept open per pool (HSM_SESSION_POOL_MIN, default 3). Never recycled due to inactivity.

    max: number

    Maximum number of sessions per pool before queuing new requests (HSM_SESSION_POOL_MAX, default 10).

    queueMax: number

    Maximum queue size when the pool is at capacity (HSM_SESSION_POOL_QUEUE_MAX, default 100).

    queueTimeoutMs: number

    Maximum wait time in the queue before rejecting with exceptions.SessionPoolQueueTimeoutError (HSM_SESSION_POOL_QUEUE_TIMEOUT_MS, default 30000).

    idleTimeoutMs: number

    Minimum idle time, above the minimum threshold, before a session is recycled (HSM_SESSION_POOL_IDLE_TIMEOUT_MS, default 60000).

    autoscalingMax?: number

    Absolute limit for resizing/autoscaling at runtime. By default, it is equal to the maximum.