#47814·envoy

concurrency: configure limits per metadata key

Author: AntonKanugCreated Sep 28, 2026Updated Sep 28, 2026
Labelsenhancementtriage

Adaptive concurrency filter maintains one concurrency budget per filter configuration. We need independent budgets by dynamic metadata, such as tenant ID, without configuring a filter instance for every identity. Use-case is limiting concurrency of HTTP CONNECT connections based on a key

Could the adaptive concurrency filter support this through a fixed-limit controller mode with an optional metadata_key? Unlike its existing latency-based mode, this would require no RTT configuration. Each key would have a counter shared across workers, with reservations held until stream destruction and idle entries removed. Existing adaptive behavior would remain unchanged.

Two possible approaches:

  1. Extend the existing adaptive controller: add an optional metadata_key and apply its concurrency limit independently to each key.
  2. Add a fixed-concurrency controller mode: extend the same filter with a fixed limit and optional metadata_key. This mode would perform keyed admission accounting without RTT configuration or adaptive calculations.