Routes and concurrency

  • Routes can share or select independent cluster budgets; application admission has a separate owner.
100%

Envoy API v3 · illustrative cluster ownership, not a deployed limit profile

One Envoy · matchingroutes arealternativesOne Envoy · resourcecounters per clusterand priorityOne application · same target behind bothclustersRoutes choose clusters; clusters and applications own different limitsRequest / responseFailure / rejectionselectsame clusterselectexhaustedexhaustedsame targetsame targetadmitno permitThis request matches Route A and chooses the shared cluster. The route does not acquire a private concurrency counter merely because it has a name. An independently inserted route must contain its own required route actions; sibling route configuration is not implicit inheritance.Route ARoute B also chooses the shared cluster. Requests from A and B therefore consume the same cluster/priority allowance in this Envoy. Only one selected route is followed for the example request; the arrows do not mean the request runs through A and then B.Route BRoute C deliberately chooses a different cluster. Giving the route a different name without changing its cluster does not provide this separation. Both cluster definitions may still target the same application socket.Route CActive upstream requests, waiting pool requests and connections have different limits. A token bucket instead counts arrivals over time. Envoy cluster/priority circuit-breaker counters are shared across its worker threads, with eventual-consistency races; they are not a strict application semaphore or a mesh-wide total.Shared clusterA + B budgetEither cluster can overflow its own counted resource and reject forwarding. Inspect the relevant counter and response flags to identify the exhausted resource. A generic 503 alone does not prove active-request overflow. A local rate-limit denial is a different filter stage.Proxy overflowThis cluster has distinct resource accounting even when its endpoint address equals the shared cluster endpoint. A second proxy replica has its own allowance again; the two cluster budgets do not combine into a protected application total.Separate clusterC budgetBoth forwarding paths reach the same application. An application-owned admission gate can cap its actual logical work across proxy clusters and bypass paths. Worker queues, asynchronous work and downstream pool limits retain separate lifetimes; configure the resource the application must protect.ApplicationadmissionApplication admission accepts the logical operation. Its lifetime may differ from the proxy upstream request, especially after disconnect or asynchronous dispatch. Completion must release the owning application resources when their actual work ends.Accepted workApplication admission can refuse work even when the proxy cluster still has capacity. This is an independent local protection boundary, not a second name for Envoy circuit breaking.Applicationrejectionselectsame clusterselectexhaustedexhaustedsame targetsame targetadmitno permit

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

  • A route matches an HTTP request. Its cluster names the upstream destinations and owns the proxy capacity limits. Routes A and B can therefore exhaust each other’s allowance when they select the same cluster.
  • Route C has a separate cluster budget. If all three routes lead to one application, its workers and admission permits remain shared even while the proxy counters are separate.
Listeners, routes and clusters

Listeners, routes and clusters

  • A listener accepts traffic; HTTP route matching selects an upstream cluster.
  • A route name does not create a cluster. Several routes can share one cluster budget, or choose independent clusters.
  • Inserted routes need their own required descriptor actions, timeout and policy behavior; sibling routes do not supply inheritance.
Inbound admission counters

Inbound admission counters

Istio 1.21+ Sidecar API · Istio 1.22.6 / Envoy 1.30.7 example semantics

Configure the server-side proxy

The illustrative Sidecar selects an already-injected atlas-web workload with an associated Service on the application port, and configures its ordinary inbound HTTP pool. It does not create the Envoy container. The example uses 64 active requests and 16 pool-pending requests; these are teaching values, not workload sizing recommendations.

Illustrative native inbound pool policyyaml
# Illustrative workload policy for Istio 1.21+; values are not sizing advice.
# This resource configures an already-injected sidecar. It does not inject one.
apiVersion: networking.istio.io/v1beta1
kind: Sidecar
metadata:
  name: atlas-web-inbound
  namespace: example
spec:
  workloadSelector:
    labels:
      app: atlas-web
  inboundConnectionPool:
    http:
      http2MaxRequests: 64
      http1MaxPendingRequests: 16
  ingress:
  - port:
      number: 8080
      protocol: HTTP
      name: http-web
    defaultEndpoint: 127.0.0.1:8080

Match each field to its counter

Istio field Envoy threshold State counted
http2MaxRequests max_requests Active upstream HTTP requests; HTTP/1.1 and HTTP/2
http1MaxPendingRequests max_pending_requests Requests waiting for an available upstream pool connection
tcp.maxConnections max_connections Upstream connections

The 16-pending setting is not a FIFO queue of Java jobs behind 64 executing Java threads. A pool can need to establish connections, and application asynchronous work can outlive proxy request accounting.

Scope and rejection

The allowance belongs to one proxy, upstream cluster and priority. Worker-local pools share the cluster budget with eventual-consistency limits; replicas have separate budgets. Pool overflow can return 503 with UO. A token-bucket rate rejection and body-buffer rejection happen at different stages. This is neither a Java work manager nor a service-wide exact semaphore.

Version difference: before and after Istio 1.21

Istio 1.21 added Sidecar inbound pool settings so the server-side proxy can use limits different from client-side DestinationRule settings. Earlier Sidecar APIs do not supply these fields; do not copy the sample into an older CRD and assume it takes effect. Check both accepted configuration and proxy behavior on the actual build.