Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

后端3个实例设置都超时15s,重试后成功返回预期应该返回超时 #721

Open
xionghao1985 opened this issue Dec 21, 2023 · 6 comments

Comments

@xionghao1985
Copy link

xionghao1985 commented Dec 21, 2023

Ⅰ. Issue Description

后端3个实例设置都超时15s,重试后成功返回预期应该返回超时

Ⅱ. Describe what happened

ingress配置

@johnlanni
Copy link
Collaborator

3个实例设置都超时15s

这个的意思是后端sleep 15秒才会返回?

@johnlanni
Copy link
Collaborator

可以看下日志里的 duration 字段,可以知道当前请求处理时间总共耗了多久

@xionghao1985
Copy link
Author

3个实例设置都超时15s

这个的意思是后端sleep 15秒才会返回?


两个做了网络延时15s,一个后台服务延时20s

@xionghao1985
Copy link
Author

xionghao1985 commented Dec 21, 2023

可以看下日志里的 duration 字段,可以知道当前请求处理时间总共耗了多久
一共40s

@johnlanni
Copy link
Collaborator

执行下hgctl gateway-config route 我看看配置

@johnlanni
Copy link
Collaborator

https://github.com/envoyproxy/envoy/blob/v1.20.7/source/common/router/router.cc#L876-L886

这是envoy的逻辑,route里的timeout和每次重试的per try timeout是独立的timer,理论上配置了route的timeout,超过这个时间请求就结束了,不会再重试,如果还会重试可能是bug,我后面有空复现看下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants