[erlang-questions] Help with design of distributed fault-tolerant systems

Vance Shipley vances@REDACTED
Thu Oct 8 14:28:53 CEST 2015


On Thu, Oct 8, 2015 at 7:23 AM, Martin Karlsson
<martin@REDACTED> wrote:
> Any insight (reading material, open source software) into how to design
> distributed, fault-tolerant systems with Erlang/OTP is welcome.

It should be pointed out, for future Googlers, that a simple archetype
available in OTP for active/standby (or 1+N) is:

     - distributed application
(http://www.erlang.org/doc/design_principles/distributed_applications.html)
     - distributed database
(http://www.erlang.org/doc/apps/mnesia/Mnesia_chap5.html#id79121)

1)  Set the application variable 'distributed' in the kernel
application to indicate which nodes the application may run.
(http://www.erlang.org/doc/man/kernel_app.html)
2)  Create mnesia table(s) with copies at all nodes.
(http://www.erlang.org/doc/man/mnesia.html#create_schema-1)
3)  On application start take over the IP address (ifconfig, arping)

Note that there is really no new code to write to make you application
distributed!

-- 
     -Vance



More information about the erlang-questions mailing list