Coder Social home page Coder Social logo

erel's Introduction

Erel

Better way to handle your Erlang releases

Erel will be a better way to handle Erlang releases in small to medium sized clusters.

It will use AMQP (RabbitMQ) to communicate membership, handle configuration, push out updates, configure hosts and so on as well as facilitate automatic updates.

Building blocks

Erel a collection of three components; erel, which manages the application, the erel_master, which manages a host and RabbitMQ which connects together many erel_masters to form a cluster.

erel_master

Each host (a server) within an erel cluster setup has a erel_master application running. This application does not contain the releases but has a manages a number of erel-enabled releases. Each erel_master has a an identifier which is used to identify which releases it should manage setup and manage. They can be group together.

erel

For an release to work in an erel cluster it needs to include the erel application. The erel application is responsible for starting the contents of it's release. The erel and erel_master communicate over Erlang RPC.

RabbitMQ (AMQP)

RabbitMQ is used to connect erel_masters together and is used to distribute configuration.

Configuration management

As an erel-enable cluster does not have a central point for configurations they need to distributed to all erel_masters. These configurations define how a group of erel_master behaves, which releases it should start etc.

Publishing configurations

  1. A configurationis sent to RabbitMQ that fans the data out to every erel_master.
  2. If the configurationis relevant to the erel_master it will be executed, e.g. updating a running erel.
  3. The configurations are written to disk.

Adding a new host

  1. The new erel_master connects to RabbitMQ.
  2. When a new erel_master is added it requests the configurations from the cluster.
  3. Once it has received the configurations it will discover which group it belongs to and start setting up the erels.
  4. If it does not belong to any group, it will wait until a configuration is pushed to the cluster that matches it.

erel_master API

The erel_master has an API to interact with the erels;

  • Start
  • Restart
  • Stop
  • Status
  • Delete (?)

erel's People

Contributors

yrashk avatar omarkj 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.