basho/riak-chef-cookbook — Issue #13: when using random_cluster_member, make sure it is up
Author: skippy
Created: 2012-01-06 18:55:09+00:00
State: open

hey folks,
first off, this cookbook kicks a**. SO glad you put the time into doing this.

I ran into an interesting situation where I started an new node, using `recipe[riak::autoconf]`, and it failed because when autoconf picked a random node, it picked one where the node was not online...but other instances in the cluster were.

I could see this being an issue if during recovery i try to bring up another instance under a different node_name (perhaps riak3.west.ec2 rather than riak2.east.ec2), at which point it could then fail and I would have to ssh in and manually add it in. Not the end of the world but it is an extra step.

so what do you think of making random_cluster_member a bit smarter, and doing a ping and if it is up returning it, and if not, going to a different node?