Giter Site home page Giter Site logo

Comments (12)

waghanza avatar waghanza commented on May 20, 2024

I'll investigate I have

wrk -H 'Connection: keep-alive' -d 5s -c 512 --timeout 8 -t 8 http://172.17.0.2:3000
Running 5s test @ http://172.17.0.2:3000
  8 threads and 512 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     0.00us    0.00us   0.00us    -nan%
    Req/Sec     0.00      0.00     0.00      -nan%
  0 requests in 5.06s, 0.00B read
Requests/sec:      0.00
Transfer/sec:       0.00B

Maybe Worker running as root. Is this intended? Set user/group from config to run worker as unprivileged user., I think we have to change the user on dockerfile

from web-frameworks.

cyrusmsk avatar cyrusmsk commented on May 20, 2024

Is it the picture for both Serverino and Handy?
Do you mean set user inside dockerfile?

from web-frameworks.

waghanza avatar waghanza commented on May 20, 2024

No only servernio. I'll work on this.

Yes, seems that the cause is docker. Not sure why, but there is no communication between docker and servernio

from web-frameworks.

cyrusmsk avatar cyrusmsk commented on May 20, 2024

Btw I've tried to run it in the docker locally. And it is working for me for both handy and serverino.
I used just simple Dockerfile. Build it and run with
docker run -d -p 3000:3000 image_name

from web-frameworks.

waghanza avatar waghanza commented on May 20, 2024

With handy the following command

wrk -H 'Connection: keep-alive' --connections 64 --threads 8 --duration 15 --timeout 1 --script /home/waghanza/workspace/benchmark/web/pipeline.lua http://172.17.0.2:3000

leads to

Running 15s test @ http://172.17.0.2:3000
  8 threads and 64 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    27.59ms   42.32ms 489.95ms   86.06%
    Req/Sec   222.25    384.21     2.18k    90.00%
  24702 requests in 15.07s, 458.34KB read
  Socket errors: connect 0, read 24702, write 0, timeout 0
Requests/sec:   1638.88
Transfer/sec:     30.41KB

from web-frameworks.

cyrusmsk avatar cyrusmsk commented on May 20, 2024

It looks almost the same that I got locally on my laptop

from web-frameworks.

waghanza avatar waghanza commented on May 20, 2024

I have

★ [000008] [l] 2023-08-14 16:09 [connectionhandler.d:0315] Socket error on read. Resource temporarily unavailable

when running servernio on my laptop through docker

from web-frameworks.

waghanza avatar waghanza commented on May 20, 2024

Not sure I understand https://github.com/trikko/serverino/blob/e425ffcb2090bd7fd6f9d1db7c230a5dbc7035e5/source/serverino/connectionhandler.d#L315 @trikko and why a GET request could produce this

cc @cyrusmsk

from web-frameworks.

cyrusmsk avatar cyrusmsk commented on May 20, 2024

Hi. Did you change something in the run? Because now serverino is working.. but it is strange..

from web-frameworks.

waghanza avatar waghanza commented on May 20, 2024

Yes, strange.

I've only update the version

from web-frameworks.

cyrusmsk avatar cyrusmsk commented on May 20, 2024

Will close for now.
Maybe we can delete archttp - it looks abandoned and not working currently.

from web-frameworks.

waghanza avatar waghanza commented on May 20, 2024

Is archttp abandoned @zoujiaqing ?

from web-frameworks.

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.