La puerta de enlace de ingreso está reintentando si el flujo ascendente devuelve 502. La mayoría de las veces funciona como se esperaba. A veces, la puerta de enlace devuelve 507 "límite de búfer de solicitud excedido al volver a intentar en sentido ascendente" sin volver a intentarlo.
De los registros puedo ver esto: app 502 -> istio-proxy sidecar 502 -> puerta de ingress gateway 507 -> client . No se pueden encontrar otros errores en los registros relacionados con ingress-gateway .
Las solicitudes tienen un tamaño de 1-30 Mb. ¿Alguna idea de dónde buscar el problema?
Servicio virtual:
... retries: attempts: 4 retryOn: 502,retriable-status-codes,connect-failure retryRemoteLocalities: true ...EnvoyFiltro:
apiVersion: networking.istio.io/v1alpha3 kind: EnvoyFilter metadata: name: buffer-limit spec: configPatches: - applyTo: LISTENER listenerMatch: 0.0.0.0_8080 patch: operation: MERGE value: per_connection_buffer_limit_bytes: 100000000La solución fue usar el filtro Envoy correcto:
apiVersion: networking.istio.io/v1alpha3 kind: EnvoyFilter metadata: namespace: istio-system name: buffer-limit spec: workloadSelector: labels: istio: ingressgateway configPatches: - applyTo: LISTENER patch: operation: MERGE value: per_connection_buffer_limit_bytes: 100000000El filtro está funcionando en v1.8.4
Para comprobar si se aplica el filtro:
istioctl proxy-config listeners <istio-ingressgateway-pod> -o json -n istio-system