question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--master-host only accepts ipv4 formatted strings

See original GitHub issue

Description 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kasturichavancommented, Oct 10, 2019

@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.

0reactions
cyberwcommented, Oct 31, 2019

Closing this, if it was not a zeromq bug please reopen with a more descriptive title.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found