Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 822 Bytes

README.md

File metadata and controls

43 lines (34 loc) · 822 Bytes

Distribution Preloader

Awaits configured nodes count in configured time for start with minimal cluster size in distributed systems.

Usage

In your rebar.config

{deps,
 [{distribution_preloader, {git, "https://github.com/bottleneko/distribution_preloader", {branch, "master"}}}
 ]}.

In your *.app.src

...
{applications,[
    kernel,
    stdlib,
    ...
    distribution_preloader,
    your_application,
    ...
]}
...

Configuration

In your sys.config

{distribution_preloader,
 [{cluster_wait_threshold_seconds, 60}, % maximum time for waiting cluster in seconds
  {cluster_size, 3}                     % if your app requires at least 3 nodes for start
 ]}.

{nodefinder,
 [{if_name, <<"eth0">>} % if you have internal internal network eth0 for distribution
 ]}.