Giter Site home page Giter Site logo

Comments (3)

lianglli avatar lianglli commented on June 9, 2024
  1. 目前不支持后端upstream的H3协议,如果有广泛的业务场景需求,可以考虑排期支持。
    在长连接业务中是有收益的,大量的客户端h3长连接到tengine,tengine到后端维持h3长连接。

  2. angie这个queue相当于加了一层buffer,但队列满时,依旧是502,这个功能的意义不是很大。可以适当调整$upstream_read_time后端超时时间,并且保证客户端调用侧的超时时长大于后端upstream的超时时长。

from tengine.

lhanjian avatar lhanjian commented on June 9, 2024
  1. 目前不支持后端upstream的H3协议,如果有广泛的业务场景需求,可以考虑排期支持。
    在长连接业务中是有收益的,大量的客户端h3长连接到tengine,tengine到后端维持h3长连接。
  2. angie这个queue相当于加了一层buffer,但队列满时,依旧是502,这个功能的意义不是很大。可以适当调整$upstream_read_time后端超时时间,并且保证客户端调用侧的超时时长大于后端upstream的超时时长。

现在是否有h2 upstream可以开源出来了?

from tengine.

linking12 avatar linking12 commented on June 9, 2024
  1. 目前不支持后端upstream的H3协议,如果有广泛的业务场景需求,可以考虑排期支持。
    在长连接业务中是有收益的,大量的客户端h3长连接到tengine,tengine到后端维持h3长连接。
  2. angie这个queue相当于加了一层buffer,但队列满时,依旧是502,这个功能的意义不是很大。可以适当调整$upstream_read_time后端超时时间,并且保证客户端调用侧的超时时长大于后端upstream的超时时长。
    @lianglli 多谢回复,关于2的话,我有一个场景困扰很久;

对于nginx来说反向代理走http1.1协议,在突增流量的情况下,如果backend的接口响应变慢了,nginx会大量开启新的TCP连接到backend,这个并不是预期的,所以走h2/h3的连接复用或者通过queue缓存一部分request应该是比较好的选择,或者面对突增流量,下游接口变慢有更好的解决方案吗?

from tengine.

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.