Following up on yesterday’s post on installing Riak 1.4 with some minor nits.
Open File Limits
The Open Files Limit leaves the reader dangling with:
However, what most needs to be changed is the per-user open files limit. This requires editing /etc/security/limits.conf, which you’ll need superuser access to change. If you installed Riak or Riak Search from a binary package, add lines for the riak user like so, substituting your desired hard and soft limits:
(next paragraph)
Suggest:
riak soft nofile 65536
riak hard nofile 65536
Tab separated values in /etc/security/limits.conf.
The same page also suggests an open file value of 50384 if you are starting Riak with init scripts. I don’t know the reason for the difference but 50384 occurs only once in Linux examples so while it may work, I am starting with the higher value.
Performance Tuning
I followed the directions at Linux Performance Tuning, but suggest you also add:
# Added
by
# Network tuning parameters for Riak 1.4
# As per: http://docs.basho.com/riak/1.3.1/cookbooks/Linux-Performance-Tuning/
both here and for your changes to limits.conf.
Puts others on notice of the reason for the settings and points to documentation.
Enter the same type of note for your setting of the noatime flag in /etc/fstab (under Mounts and Scheduler in Linux Performance Tuning).
On reboot, check your settings with:
ulimit -a
I was going to do the Riak Fast Track today but got distracted with configuration issues with Ruby, RVM, KDE and the viewer for Riak docs.
Look for Fast Track notes over the weekend.