Skip to main content

PROBE_CONCURRENCY_LIMIT

Constant PROBE_CONCURRENCY_LIMIT 

Source
pub const PROBE_CONCURRENCY_LIMIT: usize = 256;
Expand description

Per-route concurrency caps (api S-26). A single global semaphore lets a probe storm starve /invoke; per-route caps isolate the budgets.

Probe routes (/healthz, /metrics) get a generous budget because they are cheap and a k8s deployment may have many replicas all scraping at once. Invoke is the heaviest path — keep it tight. Reads and writes get asymmetric caps because writes tend to compile Wasm and allocate engine resources.