Tyr Admission Controller - v0.36.1
    Preparing search index...

    Type Alias StopPolicyConfig

    When Tyr may stop a request it has already admitted. Nothing is stopped unless a field here is set.

    A stop returns the request's concurrency slot at once and aborts the signal its callback was given. The request's tokens stay charged until the callback settles. The gateway's callback settles as soon as its upstream call has been dropped; neither step shows that the provider stopped work.

    type StopPolicyConfig = {
        overrunAllowanceTokens?: number;
        takeBackGraceMs?: number;
    }
    Index
    overrunAllowanceTokens?: number

    Tokens a request's hold may grow above its reservation. One token more stops the request. While this is set, a usage report that leaves the pool above its token budget, or a class above its token ceiling, also stops requests until the rest fit. Requires budget.

    takeBackGraceMs?: number

    Milliseconds after a limits update before requests that the update left above the new limits are stopped. Requests that finish within it are left alone, and a newer update restarts it.