You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a follow up of #3000. The UI now shows the correct number, but only when one worker node is used. When adding --processes 10 and specifying 10 users in the UI I still get a lower number in the UI compared with what the nodejs command is showing.
The logs is saying "locust.runners: ... reported that is has stopped" and later "Discarded report from unrecognized worker ...". This is logged multiple times for multiples runners.
const http = require('http');
let requestCount = 1;
const server = http.createServer((req, res) => {
setTimeout(() => {
console.log(requestCount);
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end(`Request count: ${requestCount}`);
requestCount++; // Increment the request counter
}, 1000);
});
const PORT = 3000;
server.listen(PORT, () => {
console.log(`Server running at http://localhost:${PORT}`);
});
Same holds when I remove the setTimeout (I thought maybe that would introduce count differences) and specify the Runtime to 10 seconds instead of clicking on the "Stop" button.
Actually, I'm only able to reproduce it with--stop-timeout. I still sometimes get the log message at shutdown without -s, but then no requests are actually missing (so probablly going to drop that log message level to debug). So still a bug, but much smaller scope...
Prerequisites
Description
This is a follow up of #3000. The UI now shows the correct number, but only when one worker node is used. When adding
--processes 10
and specifying 10 users in the UI I still get a lower number in the UI compared with what the nodejs command is showing.The logs is saying "locust.runners: ... reported that is has stopped" and later "Discarded report from unrecognized worker ...". This is logged multiple times for multiples runners.
Command line
locust -s 10 --processes 10
Locustfile contents
The text was updated successfully, but these errors were encountered: