Created
July 13, 2011 23:50
-
-
Save PharkMillups/1081593 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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