Per-URL runtime state

  • How the POC's token buckets refill and active-request counters release capacity.
100%
Runtime state · OBRH POC exampleFour views show configuration objects, request rejection, runtime state, and generic Envoy internal architecture. Sections A to C use prepared POC examples, not live deployment evidence. Section D shows the generic TCP and HTTP1-2 architecture. Runtime state · OBRH POC example Shared across workers · local to this sidecar · illustrative state, not measured values C1 · Local rate limiter: mutable token balances Default bucketalways consumed on allowD / 1000 tokens−1 on consumption URL descriptor bucketpath = U1U / 1000 tokens−1 on consumption Group descriptor bucketpp = FCUPIG / 1000 tokens−1 on consumption TIME-BASED REFILL1000 tokens / 1s per bucket C2 · Per-cluster active-request counters debitCreditTxn-v2 inbound|8080|| n / 50 m / 200 admit +1finish / reset −1 admit +1finish / reset −1 Different cluster → different counter route.rate_limits = rules token buckets = rate state cluster counter = concurrency 50 and 200 are separate budgets

Select a component to trace its direct connections. Drag to pan · Ctrl + wheel or pinch to zoom.

  • A token bucket spends tokens on arrivals and refills with time. Each cluster separately counts requests that remain active until completion or reset.
  • A request can spend its token and still fail to obtain a stream. Its rejection leaves the token spent, while another route can still have room in its own cluster.
POC token and concurrency state

POC token and concurrency state

Istio 1.22.6 · Envoy 1.30.7 · prepared chart 0.1.3

  • Route actions generate separate path and product-processor descriptors. One installed local limiter owns the default, URL and group bucket definitions and mutable balances.
  • The prepared chart uses 1000-token capacities and 1000-token refill amounts per second. Consumption is not transactional and later rejection does not refund consumed tokens; this is not an exact rolling-window TPS guarantee.
  • Default and descriptor token state is shared across workers for this filter configuration inside one Envoy process. Per-cluster/per-priority request counters are also shared across workers with documented eventual consistency; the 50 and 200 budgets remain separate.
  • Token balances and active counts in the figure are illustrations, not observed runtime values. Stream completion/reset releases concurrency accounting; time-based refill restores tokens.