Coder Social home page Coder Social logo

Comments (5)

3223554 avatar 3223554 commented on June 14, 2024

短时间内就504了

from fasthttpapi.

beetlex-io avatar beetlex-io commented on June 14, 2024

组件没有返回504的错误状态,我手头上有8个fasthttpapi的linux节点并发一切正常。
你的linux系统版本是什么,可以用这个工具测试一下https://github.com/IKende/WebApiBenchmark/tree/master

from fasthttpapi.

3223554 avatar 3223554 commented on June 14, 2024

我是使用K8S部署的
这个504是web服务器返回的
方便给出你压测数据的源代码吗?

这个可能是core 自身的问题了 异步api 调用同步方法 再request异步 会出现这个死锁问题

from fasthttpapi.

beetlex-io avatar beetlex-io commented on June 14, 2024

ubuntu 16.04 server VM配置:4C 1G内存

bombardier.exe -c 100 -n 1000000 http://192.168.2.25:9090/employees/3
Bombarding http://192.168.2.25:9090/employees/3 with 1000000 request(s) using 10
0 connection(s)
 1000000 / 1000000 [==============================================] 100.00% 16s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec     61865.13    8703.61   77345.36
  Latency        1.62ms     1.45ms   339.02ms
  HTTP codes:
    1xx - 0, 2xx - 0, 3xx - 0, 4xx - 1000000, 5xx - 0
    others - 0
  Throughput:    12.56MB/s

from fasthttpapi.

3223554 avatar 3223554 commented on June 14, 2024

好的 谢谢

from fasthttpapi.

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.