Giter Site home page Giter Site logo

Comments (5)

chuxin0816 avatar chuxin0816 commented on July 19, 2024 1
  1. client 侧是只调用initCommentClient一次,还是每次 wrk 发送请求过来都会调用?
  2. client 侧有显式配置连接池么,怎么配置的?
  3. 有试过适当调低 wrk 的压力(按梯度降低),看是否会继续复现
  4. 可以按照 @cgarm 同学的说法调整一下设置
  1. 仅调用一次
  2. 没有,使用的Kitex文档的示例代码
  3. 降低压力后不会复现
  4. 有用,修改后就没有问题了

from kitex.

chuxin0816 avatar chuxin0816 commented on July 19, 2024

出现错误的请求只分布在压测后期,前期请求都是正常的

from kitex.

cgarm avatar cgarm commented on July 19, 2024

It is possible that the "cannot assign requested address" error is caused by a shortage of available ports on the server side.
Expand the temporary port range.

sysctl -w net.ipv4.ip_local_port_range="MIN MAX"

For example, to set the ephemeral port range to 10000 - 65000, run:
sysctl -w net.ipv4.ip_local_port_range="10000 65000"

from kitex.

DMwangnima avatar DMwangnima commented on July 19, 2024
  1. client 侧是只调用initCommentClient一次,还是每次 wrk 发送请求过来都会调用?
  2. client 侧有显式配置连接池么,怎么配置的?
  3. 有试过适当调低 wrk 的压力(按梯度降低),看是否会继续复现
  4. 可以按照 @cgarm 同学的说法调整一下设置

from kitex.

chuxin0816 avatar chuxin0816 commented on July 19, 2024

It is possible that the "cannot assign requested address" error is caused by a shortage of available ports on the server side. Expand the temporary port range.

sysctl -w net.ipv4.ip_local_port_range="MIN MAX"

For example, to set the ephemeral port range to 10000 - 65000, run: sysctl -w net.ipv4.ip_local_port_range="10000 65000"

Thank you very much. That's very helpful.

from kitex.

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.