I have an Erlang application which runs a supervisor behaviour. Now I want to distribute it across different nodes, meaning that the supervised processes should run on different computers.
Although I read the OTP documentation, I haven't grasped how to configure my app to do this.
Currently, the .app file looks like this:
{application, my_application,
[{description, "My Description"},
{vsn, "1"},
{modules, [my_application, my_supervisor, supervised_process, my_monitor]},
{registered, [my_supervisor]},
{applications, [kernel, stdlib]},
{mod, {my_application,[]}},
{env, [{file, "/usr/local/log"}]}
]}.
If I have two computers running named Erlang VMs, how do I configure the app to run some supervised_processes on both computers?