Guest User

Untitled

a guest
May 26th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. jdrowell # do I need lots of RAM to be performant? the innodb tuning wiki mentions gigs of RAM. I planned to deploy riak on small slices (like 512MB RAM)
  2.  
  3. bingeldac # that would depend on the amount of keys more than anything
  4. 512 is a little small, but if you don't have a ton of data it should perform ok
  5. though VMs have slow I/O
  6.  
  7. bingeldac # and that will slow you down regardless of the amount of data you have
  8.  
  9. jdrowell # k. I have lots of keys. does riak keep them in RAM (like redis does)?
  10.  
  11. bingeldac # no, it is on disk
  12.  
  13. jdrowell # y agreed VM I/O is slow
  14.  
  15. bingeldac # but you will have a smaller inno buffer bache cache
  16. jdrowell # got it
  17.  
  18. jdrowell # what about the number of nodes, can I start with 2 or should I have more for the R and W parameters to really work?
  19.  
  20. bingeldac # no but one node will have 2 vnodes so R, N, W don't correspond to the number of machines
  21.  
  22. jdrowell # k. that's internal to riak, right? I don't have to run 2 instances of it?
  23.  
  24. bingeldac # they correspond to the number of vnodes and vnodes move around from node to node as needed to things like handoff. So with a default N of 3 you will have one host with 2 vnodes and one with 1
  25.  
  26. jdrowell # cool
  27.  
  28. bingeldac # so, if you have an r and w of 3 and one machines dies you could be in a spot where you couldn't read
  29.  
  30. jdrowell # I see. unless I use R=2
  31.  
  32. bingeldac # I would recommend using a lower r perhaps to insulate yourself a little well even then one machine has 2 vnodes if it dies
  33.  
  34. jdrowell # y if the machine with 2 vnodes goes down...
  35.  
  36. bingeldac # you could have paitions of data in each vnode yeah
  37. i gotta run to soccer games for my kiddos. I will be around later tonight if you have more questions or as always riak-users list, many users respond faster than us it seems :)
  38.  
  39. bingeldac # thank god for community
  40.  
  41. jdrowell # tks for your help :
Add Comment
Please, Sign In to add comment