Coder Social home page Coder Social logo

camelr786 / caravan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from uberbrodt/caravan

0.0 0.0 0.0 76 KB

epmd implementation and other OTP apps to make running Erlang/Elixir apps with Nomad and Consul easier.

License: Apache License 2.0

Shell 1.26% Elixir 98.74%

caravan's Introduction

Caravan

Tools for running Distributed Elixir/Erlang with Nomad and Consul

The built-in Erlang distribution mechanisms are prefaced on using the Erlang Port Mapper Daemon(EPMD), a process that is started with the VM and communicates with remote EPMD instances to determine what ports it's listening on. While this method can work in some cloud environments, cloud scheduling technologies such as Kubernetes or Nomad tend to make specific, random port assignments. Also, the built-in method for forming a cluster is to use a plaintext .hosts file with node names, which is very difficult to make work in a dynamic environment where node membership can change frequently.

There are several libraries and strategies for using the Kubernetes API to build a distributed cluster, but Consul provides us with a clean DNS api to retrieve information, and works with many different kinds of container schedulers (Nomad, Mesos, etc).

Caravan is split into two parts: The first is a set of modules that remove the need for epmd by determining node ports from the node name. The idea and much of the code is from the excellent article Erlang (and Elixir) distribution without epmd. It's worth the read, and should explain what we're trying to accomplish with the Caravan.Epmd module.

The second part utilizes libcluster to help with forming clusters automatically based on DNS SRV queries to Consul.

View extended documentation on Hex.

Installation

{:caravan, "~> 1.0.0"},

caravan's People

Contributors

uberbrodt avatar kyos avatar

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.