Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Risolvere i problemi relativi ai proxy sidecar in Cloud Service Mesh
Questa sezione illustra i problemi comuni dei proxy sidecar di Cloud Service Mesh e come risolverli.
Se hai bisogno di ulteriore assistenza, consulta la sezione Ricevere assistenza.
Il contenitore istio-proxy viene interrotto a causa di un evento OOM
In questa sezione si presume che il contenitore istio-proxy non venga interrotto da un evento SystemOOM e che il nodo Kubernetes non sia in stato MemoryPressure.
Il contenitore sidecar istio-proxy ha per impostazione predefinita limiti di risorse.
Se il contenitore istio-proxy viene interrotto con Reason: OOMKilled, è necessario capire perché Envoy sta consumando la memoria.
Se stai riscontrando un'interruzione della produzione, una soluzione rapida è aumentare i limiti per tutti i contenitori utilizzando IstioOperator:
Se riscontri questo problema con carichi di lavoro specifici, puoi modificare il limite solo per questi carichi di lavoro aggiungendo le seguenti annotazioni.
sidecar.istio.io/proxyMemory
sidecar.istio.io/proxyMemoryLimit
Assicurati che i limiti non siano inferiori ai valori predefiniti.
La soluzione a lungo termine è ridurre l'utilizzo di memoria dei contenitori sidecar istio-proxy. Per impostazione predefinita, tutti i proxy sidecar sono programmati con la configurazione necessaria per raggiungere qualsiasi altra istanza di carico di lavoro nel mesh.
Istio fornisce la definizione della risorsa personalizzata Sidecar
per limitare il numero di endpoint programmati per i proxy sidecar e quindi
ridurre il consumo di memoria del contenitore istio-proxy.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[],[],null,["Resolving sidecar proxies issues in Cloud Service Mesh\n\nThis section explains common Cloud Service Mesh sidecar proxies problems and how to\nresolve them.\nIf you need additional assistance, see [Getting support](/service-mesh/docs/getting-support).\n\nThe `istio-proxy` container is killed because of a OOM event\n\nIn this section we assume that the `istio-proxy` container is not killed by a\n`SystemOOM` event, and the kubernetes node is not in `MemoryPressure` condition.\nThe `istio-proxy` sidecar container has by default [resource limits](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#requests-and-limits).\nIf the istio-proxy container gets killed with `Reason: OOMKilled` it is necessary\nto understand why Envoy is consuming the memory.\n\nIf you are facing a production outage, a quick workaround is to raise the limits\nfor all containers using `IstioOperator`: \n\n ---\n apiVersion: install.istio.io/v1alpha1\n kind: IstioOperator\n spec:\n values:\n global:\n proxy:\n resources:\n requests:\n memory: 128Mi\n limits:\n memory: 1Gi\n\nIf you are facing this issue with specific workloads, you can change the limit\njust on those workloads by adding the following\n[annotations](https://istio.io/v1.26/docs/reference/config/annotations/).\n\n- `sidecar.istio.io/proxyMemory`\n- `sidecar.istio.io/proxyMemoryLimit`\n\nPlease make sure you don't have limits that are lower of the default values.\n| **Note:** because this container is injected at the Pod creation, this setting will be effective only for newly created Pods.\n\nThe long term solution is to reduce the memory footprint of your `istio-proxy`\nsidecar containers. By default all sidecar proxies are programmed with the\nnecessary configuration to reach any other workload instance in the mesh.\nIstio provides the [custom resource definition `Sidecar`](https://istio.io/v1.26/docs/reference/config/networking/sidecar/)\nto limit the number of endpoints programmed to sidecar proxies, and therefore\nreduce the memory consumption of the `istio-proxy` container."]]