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

Inaccurate failed requests #198

Open
yogeek opened this issue Oct 3, 2024 · 0 comments
Open

Inaccurate failed requests #198

yogeek opened this issue Oct 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@yogeek
Copy link

yogeek commented Oct 3, 2024

Brief summary

When testing this dashboard plugin for a demo, I wanted to start with a kubernetes deployment scaled to 0 (no pod) to show that all requests were "failed" and I was quite surprised to have a "Failed requests per second" always equal to 1/s with a "Request rate" equal to 200/s
(in the "overview" tab as well as in the "timings" tab)

Image
Image

K6 summary showing all requests are failed :
Image

In this case where no server could answer, "Failed requests" should be the same as "Requests rate", shouldn't it ?

k6 version

v0.53.0

xk6-dashboard version

0.7.5

OS

Ubuntu 18.04.6 LTS

Docker version and image (if applicable)

No response

Steps to reproduce the problem

Launch a k6 run on a inexistent site :

cat <<EOF > script.js
import http from 'k6/http';

export const options = {
  scenarios: {
    constant_request_rate: {
      executor: 'constant-arrival-rate',
      rate: 200,
      timeUnit: '1s', // 200 iterations per second, i.e. 200 RPS
      duration: '300s',
      preAllocatedVUs: 100, // how large the initial pool of VUs would be
      maxVUs: 200, // if the preAllocatedVUs are not enough, we can initialize more
    },
  },
};

export default function() {
  http.get('http://nothing.here');
}
EOF

export K6_WEB_DASHBOARD_PORT=8888
export K6_WEB_DASHBOARD_PERIOD="1s"

k6 run --out web-dashboard - <script.js

Open dashboard : http://localhost:888
Check "Failed requests" is always 1/s whereas "HTTP request rate" is around 200/s

Expected behaviour

"Failed requests" should be the same as "Requests rate" if all HTTP requests are failing

Actual behaviour

"Failed requests" is always 1/s whereas "HTTP request rate" is around 200/s

@yogeek yogeek added the bug Something isn't working label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant