Skip to content

Instantly share code, notes, and snippets.

@jmerriweather
Last active May 17, 2018 22:04
Show Gist options
  • Save jmerriweather/5fb752e10360464bdccd93f023e356cb to your computer and use it in GitHub Desktop.
Save jmerriweather/5fb752e10360464bdccd93f023e356cb to your computer and use it in GitHub Desktop.
nodes = [node | Node.list]
[:"n1@127.0.0.1", :"n2@127.0.0.1"]
iex(n1@127.0.0.1)6> Database.create!(disk: nodes)
:ok
# this will wait for all nodes to complete
iex(n1@127.0.0.1)7> :ok = Database.wait(15000)
:ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment