Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI-Examples] Nginx #2035

Open
dimakuv opened this issue Oct 15, 2024 · 0 comments
Open

[CI-Examples] Nginx #2035

dimakuv opened this issue Oct 15, 2024 · 0 comments

Comments

@dimakuv
Copy link

dimakuv commented Oct 15, 2024

Description of the problem

Our benchmark-http.sh script uses wrk under the hood. Wrk seems to ignore error code 403, and happily continues execution and reports some (meaningless) statistics:

$ gramine-sgx ./nginx
...

# wget correctly complains
$ wget --no-proxy http://127.0.0.1:8002/random/10K.1.html
--2024-10-15 07:45:28--  http://127.0.0.1:8002/random/10K.1.html
Connecting to 127.0.0.1:8002... connected.
HTTP request sent, awaiting response... 403 Forbidden
2024-10-15 07:45:28 ERROR 403: Forbidden.

# wrk doesn't complain
$ wrk -c 300 -d 30 -t 1 -R 10000 http://127.0.0.1:8002/random/10K.1.html
Running 30s test @ http://127.0.0.1:8002/random/10K.1.html
  1 threads and 300 connections
  Thread calibration: mean lat.: 1.956ms, rate sampling interval: 10ms
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     2.99ms   12.39ms 204.93ms   98.75%
    Req/Sec    10.71k     8.31k   57.33k    75.40%
  289281 requests in 30.00s, 84.97MB read
  Non-2xx or 3xx responses: 289281
Requests/sec:   9642.13
Transfer/sec:      2.83MB

This was detected during #2018.

Our CI should either:

  • run wget <file under test> before wrk,
  • or modify benchmark-http.sh script somehow.

Currently our CI just runs benchmark-http.sh script that invokes wrk, and such errors are not noticed:

LOOP=1 CONCURRENCY_LIST="1 32" ../common_tools/benchmark-http.sh http://127.0.0.1:8002

Gramine commit hash

91c90b4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant