The VU metric shows a smaller number than what I've configured

In your particular case @Erin there will always be 10VUs for the duration of the test. After the 10s(your duration) though because after v0.27.0 we have gracefulStop of 30s by default we will wait for VUs to finish their already started iterations for 30s. This means that some VUs will return before others(arguably this is always the case … even if we stop them “simultaneously” without gracefulStop).

Now unfortunately in this case (and I think this is the only such case at all …) vus is a counter which increases and decreases (see stages/ramping-vus, for an example of this), k6 actually stops all VUs at the end and that counter does go down to 0.

Unfortunately, it seems that the “all VUs have stopped we can print the summary now” and “all VUs have stopped and we have updated the counters and that have gone through so it will be seen in the summary” are two distinct events, that lead to the vus last value (which shown here) to not be 0 as it should be … as at the end of a test we have always stopped all vus.

tl;dr - in your particular case it was 10 vus for the whole duration you care about :wink:

Hope this answers your question

3 Likes