Giter Site home page Giter Site logo

Comments (6)

armon avatar armon commented on July 22, 2024

I think this is two separate issues, and want to close the ticket. If you provide an explicit bind address it will use that address (instead of the first private IP). So that is not a bug. Supporting DNS should be filed as an enhancement.

from serf.

mitchellh avatar mitchellh commented on July 22, 2024

Fair enough, I'm going to rename the issue and we'll just keep this one since people are watching it.

from serf.

livid avatar livid commented on July 22, 2024

I'm trying to deploy Serf on our CDN system (with 100+ servers) as a new messaging system, with Encryption turned on. However, I have two issues:

  1. It seems that Serf prefer to use private IP, so that if I try to start Serf on our servers with only public IP, I got an error and have to specify public IP in -bind to make it start.
  2. Nodes are trying to connect each other via private IPs, but they're not in same datacenter.

Since I'll be using Puppet to deploy Serf to those servers, I guess I will need to render public IP addresses to configuration files.

Maybe we can have a section in docs about how to use Serf in cross datacenter scenarios.

from serf.

armon avatar armon commented on July 22, 2024

@livid By default, if no bind address is provided to Serf it uses the first private IP it can find. This is for security reasons, to prevent Serf from unexpectedly running on a public IP.

If you want to run it over the public network or cross DC, you need to do the following:

  1. Specify public addresses using "-bind"
  2. Set "-profile=wan". This optimizes the internal timing values for a WAN instead of the LAN which is default
  3. Highly recommend setting an encryption key

That should be it! If you have any issues, please email the mailing list!

from serf.

patrickviet avatar patrickviet commented on July 22, 2024

+1, this would be an awesome feature.
I'm thinking about the AWS DNS that will either resolve to public or private depending where you are.

from serf.

c4milo avatar c4milo commented on July 22, 2024

it would be nice if it does not have to rely in a DNS server. The following could be a non-sense for Serf's current design as well as out of topic, but I really like the approach taken in Iris, where the networking is abstracted out from the user and you only care about the logical networks created through Iris.

from serf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.