bend-kit-retry
Search uses release 0.3.0.0 · 35 definitions
Definitions (35)
- type Budgetleft: attempts the whole operation may still start, the first one included.
- type Deny
- type Gate
- type Circuitthreshold: failures in a row, each inside window ms of the newest, that open the circuit.
- type StateClosed: the failures since the last success that are still inside the window, newest first.
- type Breaker
- type OutcomeSettled: a success.
- type Policyattempts: tries in one layer, the first one included.
- type Plan
- def Budget.new
- def Budget.late
- def pruneThe failure times still inside the window: now < t + window.
- def Circuit.probes
- def Circuit.cooldown
- def half.admit
- def open.admit
- def State.admitClosed admits.
- def closed.trip
- def closed.fail
- def State.doneA closed success clears the failures.
- def Breaker.new
- def Breaker.on
- def Breaker.admit
- def Breaker.done
- def admit.ok
- def admit.breaker
- def admit.late
- def admitAsk to start one attempt at now.
- def delaymin(cap, base * 2^n), doubled one step at a time, so no step passes cap.
- def jitterEqual jitter: d / 2, plus r mod (d / 2 + 1).
- def waitThe wait before retry n (0 first): the server's wait when it gave one, else the jittered backoff.
- def plan.left
- def plan.at
- def planAfter an attempt ends at now: stop, or wait ms and then ask admit again.
- def failedFailed, Unsafe, and Transient count as failures for the breaker.