Skip to content
This repository has been archived by the owner on Nov 14, 2019. It is now read-only.

Cannot use hostnames in config #19

Closed
dinoshauer opened this issue Jun 20, 2015 · 1 comment
Closed

Cannot use hostnames in config #19

dinoshauer opened this issue Jun 20, 2015 · 1 comment

Comments

@dinoshauer
Copy link

Trying to set up a local cluster using docker-compose and to link containers together you should use the hostname, however it seems that brubeck cannot connect to the containers using hostnames defined in /etc/hosts. I've attached the error I get from the log, the backends snippet that is relevant to the issues and the contents of /etc/hosts.

If I use the ip address from /etc/hosts brubeck connects fine.

Let me know if you need more info :)

EDIT: I can ofcourse telnet carbon 2004
Log:

instance=brubeck_debug backend=carbon event=failed_to_connect errno=101 msg="Network is unreachable"

Config:

  "backends" : [
    {
      "type" : "carbon",
      "address" : "carbon",
      "port" : 2004,
      "frequency" : 10,
      "pickle": true
    }
  ],

/etc/hosts:

$ cat /etc/hosts
172.17.0.155    93c76038bc47
127.0.0.1       localhost
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.17.0.150    carbon 087e1b0d7be2 statsdocker_carbon_1
@dinoshauer
Copy link
Author

Works beautifully! Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant