myzhan / locust4j

Locust4j is a load generator for locust, written in Java.
MIT License
81 stars 30 forks source link

Locust 1.x compatibility #26

Closed GnawNom closed 3 years ago

GnawNom commented 3 years ago

I tried running Locust4j and it says it's connected to master, but when I open the webui there are 0 workers listed.

Tried running with 1.14.x and 1.0.x, neither worked. Are there any plans to support 1.x locust?

myzhan commented 3 years ago

Did you connect to the right master host and port?

mpc92 commented 3 years ago

Seeing the same issue, and have verified master and worker are both using localhost and 5557. Locust version for master is 1.4.1

myzhan commented 3 years ago

Can't reproduce by myself. Which version of locust4j are you using?

If locust4j connects to the master successfully, the master will print logs to stdout like these.

[2020-12-11 09:40:40,527] MacBook-Pro.local/INFO/locust.main: Starting web interface at http://0.0.0.0:8089 (accepting connections from all network interfaces) [2020-12-11 09:40:40,536] MacBook-Pro.local/INFO/locust.main: Starting Locust 1.4.1 [2020-12-11 09:40:58,190] MacBook-Pro.local/INFO/locust.runners: Client 'MacBook-Pro.local_7fef2e6c2cb2e9c8306fb1b7dcbf3df8' reported as ready. Currently 1 clients ready to swarm.

mpc92 commented 3 years ago

Thanks for the quick response!

So I tried again, got the same thing and noted that I was on locust4j 1.0.0. Forced an update using LATEST in my pom file, and got 1.0.12, which now is working as expected.

Thanks for checking!