作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
这里是 VirtualService 的例子,同时使用了超时和重试。
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: sa-logic
spec:
hosts:
- sa-logic
http:
- route:
- destination:
host: sa-logic
subset: v1
weight: 50
- destination:
host: sa-logic
subset: v2
weight: 50
timeout: 8s
retries:
attempts: 3
perTryTimeout: 3s # perTryTimeout (3s) is different from timeout above (8s)
它是如何工作的?该文档没有对此问题提供明确的答案。我有三个猜测:
最佳答案
这是正确的:
- Timeout per try always 3s (including initial call), but the total timeout for all attempts is 8s.
它的基本意思是:
如果尝试时间超过 3 秒,则将其标记为失败。
最多尝试 3 次。
成功尝试的总等待时间不会超过 8 秒。
perTryTimeout
* 重试
不应超过全局超时
。如果是这样,超出全局超时的重试尝试将被忽略。
关于istio - 超时和重试如何在 Istio 中协同工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68224451/
我是一名优秀的程序员,十分优秀!