istio.io/istio@v0.0.0-20240520182934-d79c90f27776/releasenotes/notes/fix-concurrency.yaml (about)

     1  apiVersion: release-notes/v2
     2  kind: feature
     3  area: installation
     4  upgradeNotes:
     5  - title: Proxy Concurrency changes
     6    content: |
     7      Previously, the proxy `concurrency` setting, which configures how many worker threads the proxy runs,
     8      was inconsistently configured between sidecars and different gateway installation mechanisms.
     9      This often led to gateways running with concurrency based on the number of physical cores on the host machine,
    10      despite having CPU limits, leading to decreased performance and increased resource usage.
    11      
    12      In this release, concurrency configuration has been tweaked to be consistent across deployment types.
    13      The new logic will use the `ProxyConfig.Concurrency` setting (which can be configured mesh wide or per-pod), if set,
    14      and otherwise set concurrency based on the CPU limit allocated to the container
    15      For example, a limit of 2500m would set concurrency to 3.
    16      
    17      Prior to this release, sidecars followed this logic, but sometimes incorrectly determined the CPU limit.
    18      Gateways would never automatically adapt based on concurrency settings.
    19  
    20      To retain the old gateway behavior of always utilizing all cores, `proxy.istio.io/config: concurrency: 0` can be set on each gateway.
    21      However, it is recommended to instead unset CPU limits if this is desired.
    22  
    23  releaseNotes:
    24  - |
    25    **Updated** the proxies `concurrency` configuration to always be detected based on CPU limits, unless explicitly configured. See upgrade notes for more info.