Git Product home page Git Product logo

Comments (6)

johnlanni avatar johnlanni commented on June 26, 2024

3个实例设置都超时15s

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

from higress.

johnlanni avatar johnlanni commented on June 26, 2024

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

from higress.

xionghao1985 avatar xionghao1985 commented on June 26, 2024

3个实例设置都超时15s

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


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

from higress.

xionghao1985 avatar xionghao1985 commented on June 26, 2024

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

from higress.

johnlanni avatar johnlanni commented on June 26, 2024

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

from higress.

johnlanni avatar johnlanni commented on June 26, 2024

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,我后面有空复现看下

from higress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.