Skip to content

Startegy to find the master node among all other nodes

Notifications You must be signed in to change notification settings

SumitPugalia/leader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leader

Setup

mix deps.get

mix ecto.create

mix ecto.migrate

Starting

Start K Nodes each with different name

iex --sname node1 -S mix

See the logs what are the messages being sent and received in all the nodes

Close master Node (ctrl + C + C ) and see other node taking it over. The closed node is deleted from DB too.

Things Missing

Tests, CI, Release

About

Startegy to find the master node among all other nodes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages