RetryBudgetConfig
Defined in: src/core/types.ts:245
Caps retries per partition to a fraction of its recent traffic. A retry is
allowed only while retries < max(minRetriesPerSec * windowMs / 1000, ratio * requests) over the last windowMs, where requests counts first
attempts. Past that, the ticket fails with its last error instead of
waiting. Opt-in: no budget applies unless one is configured.
Properties
Section titled “Properties”ratio:
number
Defined in: src/core/types.ts:247
Retries allowed per first attempt in the window, e.g. 0.1 = 10%.
windowMs
Section titled “windowMs”windowMs:
number
Defined in: src/core/types.ts:249
Length of the sliding window in ms.
minRetriesPerSec?
Section titled “minRetriesPerSec?”
optionalminRetriesPerSec?:number
Defined in: src/core/types.ts:252
Floor that lets a low-traffic partition retry at all.
