JavaScript HSM API Dinamo
    Preparing search index...

    Class PoolAutoscaler

    Deterministic pool resizing policy. The scheduling of observation windows is the caller’s responsibility; this module only decides whether an observed window should be accepted, rolled back, or aborted.

    Flow: proposeIncrease() applies a precautionary increase and returns the proposal. After the observation window, evaluate(before, after) decides: it accepts if the throughput gain exceeds minGain and the safety gates pass; it reverts if the gain is insufficient; it stops if any safety gate has failed.

    Index
    • Number of returns

    • Apply a single proposal; a new proposal requires a decision on the previous one.

      Returns { previousTarget: number; proposedTarget: number } | null