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
I have an environment that is IPv4-only, but there is an IPv6 address listed in /etc/hosts. When I try to connect to the master using the following command, it results in an error:
# locust -f ./p4_basic_code.py --worker --master-host locust-master -L DEBUG
[2024-04-25 06:24:31,138] ip-192-168-0-235.ap-northeast-3.compute.internal/DEBUG/locust.runners: Failed to connect to master locust-master:5557, retry 1/60.
Prerequisites
Description
I have an environment that is IPv4-only, but there is an IPv6 address listed in /etc/hosts. When I try to connect to the master using the following command, it results in an error:
By changing self.socket.setsockopt(zmq.IPV6, 1) to 0 resolves the issue.
I recommend detecting whether the current environment supports IPv6 before enabling it.
Command line
locust -f ./p4_basic_code.py --worker --master-host locust-master -L DEBUG
Locustfile contents
Python version
3.11
Locust version
2.26.0
Operating system
Debian 12
The text was updated successfully, but these errors were encountered: