elixir app on two nodes, cluster or not?

117 views
Skip to first unread message

Matteo Giachino

unread,
May 14, 2016, 1:39:05 PM5/14/16
to elixir-lang-talk
I have an elixir application on two nodes. This is mainly for availability, so we are doing rolling deploys on them.
Now, I'm just coming back from elixir conference in berlin, and many talks were about scaling erlang beams on many nodes and the likes.

Our current setup is:

the app is containerized with docker and deployed on ecs. Its only purpose is to respond to api calls. There is a load balancer in front that route the requests in a round robin fashion on the two containers. So the two nodes are not aware of each other and behave like a single node application.

Is there some drawbacks by doing this? Is there something that I'm missing from the awesome erlang virtual machine? Should I join the two containers togheter?

Many thanks in advance.

bram.v...@voltone.net

unread,
May 15, 2016, 8:24:42 AM5/15/16
to elixir-lang-talk
There is little point in connecting nodes just for the sake for connecting them. If each node can do its job in isolation, and you don't need a shared cache or something like that, just leave it as is.

Bram

Matteo Giachino

unread,
May 16, 2016, 5:16:36 AM5/16/16
to elixir-lang-talk
many thanks! :)
Reply all
Reply to author
Forward
0 new messages