Skip to content

Instantly share code, notes, and snippets.

@coderoshi
Created September 3, 2014 11:52
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 coderoshi/ae097c6db442e0152d03 to your computer and use it in GitHub Desktop.
Save coderoshi/ae097c6db442e0152d03 to your computer and use it in GitHub Desktop.
## Set SC from off to on
find /riak/dev -name riak.conf | xargs sed -i -e "s/## strong_consistency = on/strong_consistency = on/"
## restart each node in order
for d in `ls /riak/dev`; do /riak/dev/$d/bin/riak restart; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment