istio - 重试无法解决 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
解决方案
推荐阅读
- javascript - 通话结束后可以自动打开 PWA 应用吗
- react-native - React Native iOS:打包程序在物理设备上的加载速度比在模拟器上慢得多
- c# - 匹配字符串模板的正则表达式
- azure - 无法在 databricks 笔记本上读取 spark 临时表数据
- javascript - bootstrap 是否有带有时间框架选项的图表组件?
- csv - 如何在 Julia 中放置列名并将新闻文件 .csv 放在 Julia 语言中的第二、第三等列中?
- pandas - 识别基于列值的数据类型
- java - 如何在反应中添加引导程序?
- javascript - 如何防止用户在反应中输入负数?
- javascript - 碳图缺少 CSS 样式。请阅读碳图表入门指南