Skip to content

Instantly share code, notes, and snippets.

@PharkMillups
Created July 13, 2011 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PharkMillups/1081593 to your computer and use it in GitHub Desktop.
Save PharkMillups/1081593 to your computer and use it in GitHub Desktop.
16:18 <rando> is `riak-admin join` idempotent?
16:20 <rando> im working on provisioning scripts, and it will automatically run
`riak-admin join` to join my cluster. I just want to see if its ok to run it
multiple times (every time I provision), or if I need a guard to keep it from
running after the first time
16:29 <jtuple> rando: Joining is more or less idempotent.
16:34 <rando> jtuple: "more or less"?
16:35 <rando> so is it possible to run it too often?
16:35 <rando> what happens if it runs while the node is still joining?
16:39 <jtuple> rando: You can treat it as idempotent. A join is simply implemented as
'joining node sends ring to cluster'. After that, the ring gossips and eventually
converges to a new state with the joining node as part of it.
16:40 <rando> jtuple: ok, cool
16:40 <rando> thanks
16:40 <jtuple> rando: However, keep in mind that we recommend you
have 'riak-admin ringready' in between having multiple nodes join the cluster.
16:41 <jtuple> rando: Shouldn't be necessary betweenb multiple sends of the same node
join command, just don't have multiple outstanding nodes trying to join at once.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment