Skip to content

Instantly share code, notes, and snippets.

@binarytemple
Created July 4, 2014 15:43
Show Gist options
  • Save binarytemple/852045efabcbe3081ced to your computer and use it in GitHub Desktop.
Save binarytemple/852045efabcbe3081ced to your computer and use it in GitHub Desktop.

Riak tricks

Bitcask, fill the key storage memory up by continously storing lots of objects with big keys and small data.

while true ; 
    do echo run ; 
    curl -XPUT -H "Content-Type: application/text" -d 'foo' "http://127.0.0.1:8098/riak/default/test$(date +"%s")${RANDOM}${RANDOM}$(seq 1 2200 | tr -d '\n') " ;
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment