--master-host only accepts ipv4 formatted strings
See original GitHub issueDescription of issue / feature request
When setting up a distributed setup via docker-compose, I’d like to set the master-host
to the locust_master service name. However, it seems that non-ipv4 formatted strings cause an error and crashes the slave. This is an example of what I would like to do (but causes the slave to crash with a ZMQError):
services:
version: '2.1'
services:
locust_master:
build: .
ports:
- "8081:8081"
volumes:
- '.:/src'
command:
'locust'
locust_workers:
build: .
command:
'locust --slave --master-host=locust_master'
depends_on:
- locust_master
Expected behavior
It connects to the host via it’s alias’ed hostname.
Actual behavior
It crashes with a ZMQError
Environment settings (for bug reports)
- OS: Red Hat Enterprise Linux 7
- Python version: 2.7
- Locust version: Stable
Steps to reproduce (for bug reports)
Create a dockerfile with locust and then try to bring up a master / slave where --master-host
is set to locust_master
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Configuring Client Authentication | Pivotal Greenplum Docs
The gss authentication method is only available for TCP/IP connections. When GSSAPI uses Kerberos, it uses a standard principal in the format servicename/ ......
Read more >IPv4 and IPv6 address formats - IBM
An IPv4 address has the following format: x . x . x . · An IPv6 address can have either of the following...
Read more >Functions for Working with IPv4 and IPv6 Addresses
Returns a string containing the corresponding IPv4 address in the format ... Accepts a FixedString(16) value containing the IPv6 address in binary format....
Read more >check if a string matches an IP address pattern in python?
For example, I have a bunch of strings and want to check each one to see if they are a valid IP address...
Read more >How to validate valid IP address format for field - ServiceNow
Solved: Hi All, I am new in this enviornment, My requirement is : I have one field name : IP address this can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@cgoldberg @aldenpeterson-wf Is there no other way than hardcoding an ipaddress to get this working ? When we deploy this in kubernetes, hardcoding ipadress will be a pain.
Closing this, if it was not a zeromq bug please reopen with a more descriptive title.