3 ms·
> any idea if it's easy or possible to dynamically join and leave clusters? Don't know the specifics in Erlang, but in Elixir you can just use Node.connect/1 a
by notamy 9y ago
> any idea if it's easy or possible to dynamically join and leave clusters?
Don't know the specifics in Erlang, but in Elixir you can just use Node.connect/1 and Node.set_cookie/2: https://hexdocs.pm/elixir/Node.html https://hexdocs.pm/elixir/Node.html
Edit: There's also stuff like libcluster (https://github.com/bitwalker/libcluster https://github.com/bitwalker/libcluster) that allow for this at a higher level afaik.
- zorbash 9y agoWe are happy users of libcluster but there's also https://github.com/mrluc/peerage https://github.com/mrluc/peerage for automatic node discovery.