Skip to content

Instantly share code, notes, and snippets.

@jdmaturen
Created April 23, 2011 23:05
Show Gist options
  • Select an option

  • Save jdmaturen/939068 to your computer and use it in GitHub Desktop.

Select an option

Save jdmaturen/939068 to your computer and use it in GitHub Desktop.
Riak resource allocation (rough expansion)
# of keys: 10,000,000
size of key: 60bytes (40bytes bitcask + 20bytes for name)
bounded size of each value: 1k
# of active items (usually per day): 1,000,000 (of course how you determine this number is up for grabs, I suggest measuring)
RF: 3
130% * (1k * 1mm * 3) / 1024**3 ~= 4GB for filesystem cache
130% * (10mm * 60b * 3) / 1024**3 ~= 2GB+ for key space
so on a 4 node cluster, per node: 1GB for fs cache, >512MB for key space, + OS and of course room to grow if these numbers are not static.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment