Sample application to simulate a netsplit and showcase Horde.
It's heavily based on hello_world example form Horde
For the most basic use case of distributed servers, you can start two separate terminals with:
SERVER_NODES="server2@127.0.0.1" iex --name server1@127.0.0.1 --cookie asdf -S mix
SERVER_NODES="server1@127.0.0.1" iex --name server2@127.0.0.1 --cookie asdf -S mix
Then you can alter our server state from server1 with
Netsplit.Server.set_state("new state")
ant then on server2 you can check it's updated with
Netsplit.Server.get_state()