I am following a UI guide in the k6 blogs with a test scenario with externally-controlled
executor. Pause and resume works perfectly fine via both k6 commands (k6 pause
, k6 resume
).
For scaling, k6 scale
seems to work perfectly fine, however, when I followed the guide to increase or decrease VUs via the REST API patch endpoint, I get Pause Error
.
When I tried to increase VUs when it is running, I get an error saying that “test execution wasn’t paused”. However, when I try to increase the VUs when it is paused, I get an error saying that “test execution was already paused”.
Does k6 scale
increase or decrease VUs differently than sending a PATCH request to the k6 endpoint? I would assume that these internal control commands would still interact with the k6 endpoints like how it was suggested in the k6 REST API guide. How should I look into it to make increase and decrease work?