Giter Club home page Giter Club logo

erlang-node-discovery's Introduction

Erlang node discovery

Allows to organize Erlang/Elixir node discovery using the information about nodes provided in config. Useful in cases when your Erlang/Elixir nodes can be started/re-started on different hosts, as it happens in Mesos.

Basic configuration

[
    {erlang_node_discovery, [
        {db_callback, erlang_node_discovery_db},
        % List of hosts where apps can be started
        {hosts, ["host1.local", "host2.local", "host3.local"]},

        % List of nodenames and their ports
        {node_ports, [
            {app1, 17012},
            {app2, 17013},
            {app3, 17113}
        ]}
    ]}
].

Using the application with EPMDLESS

It might be useful for cases when you want to organize a service discovery and don't want to relay on standard distribution protocol. See more details about EPMDLESS here: https://github.com/oltarasenko/epmdless

{ erlang_node_discovery, [
    {db_callback, epmdless_dist},
    {hosts, ["host1.local", "host2.local"]},
    {node_ports, [
        {'app1', 17012},
        {'app2', 17013},
        {'app3', 17015}
    ]},
    {cookie, app_cookie}
]}

erlang-node-discovery's People

Contributors

dmzmk avatar oltarasenko avatar bryanhuntesl avatar

Stargazers

Niranjan Anandkumar avatar Massimo Cesaro avatar  avatar Roman Pushkov avatar Viktor Gergely avatar Barna Kovacs avatar Benny Howard avatar Benny Howard avatar Javier García avatar Randy Thompson avatar Eishun Kondoh avatar Simon Escobar Benitez avatar Manuel Durán Aguete avatar  avatar Igor K avatar Shian avatar  avatar Leonardo Rossi avatar Conrad Steenberg avatar Ismael Medeiros avatar Ole J. Rosendahl avatar Mat Garland avatar Marco Aurélio da Silva avatar Alvin Lai avatar Kevin Sheurs avatar Christopher Keele avatar COHAWK avatar Xavier Van de Woestyne avatar Jay Zeschin avatar Arto Bendiken avatar András Boroska avatar

Watchers

 avatar James Cloos avatar  avatar András Boroska avatar Randy Thompson avatar

erlang-node-discovery's Issues

Nodes fail to connect

Hi, when trying to run the example we're getting this output:

host1.com | =INFO REPORT==== 21-Aug-2018::13:50:03 ===
host1.com | Failed to connect to {{172,18,0,2},17012}
host2.com | 
host2.com | =INFO REPORT==== 21-Aug-2018::13:50:11 ===
host2.com | Currently I know ['[email protected]','[email protected]'] nodes 
host3.com | 
host3.com | =INFO REPORT==== 21-Aug-2018::13:50:12 ===
host3.com | Currently I know ['[email protected]','[email protected]'] nodes 
host1.com | 
host1.com | =INFO REPORT==== 21-Aug-2018::13:50:13 ===
host1.com | Currently I know ['[email protected]','[email protected]'] nodes

Is there something we need to do to get it to connect?

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.