首页 > 解决方案 > 重试无法解决 istio 1.4.3 中的 5xx 错误

问题描述

嗨,我为我的测试应用程序配置了以下虚拟服务。我已经为 5xx 配置了退休。但这不起作用。它只重试一次,而不是 3 次。

kind: VirtualService
metadata:
  name: test-app
spec:
  gateways:
  - test-app-gateway-public
  - test-app-gateway-private
  hosts:
  - '*'
  http:
  - match:
    - uri:
        prefix: /api/test
    retries:
      attempts: 3
      perTryTimeout: 1s
      retryOn: 5xx
    route:
    - destination:
        host: test-app
        port:
          number: 8080
      weight: 100
    timeout: 1000s

标签: istio

解决方案


推荐阅读