Installing on
SmartOS

SmartOS is no longer supported in Riak KV 2.2.3+. If you are interested in using Riak KV on SmartOS, you can still build from source.

The following steps have been tested to work with Riak version 1.2 on SmartOS version joyent_20120614T184600Z. They demonstrate installation of a Riak node on SmartOS as the root user.

Open Files Limit

Before proceeding with installation, you should ensure that the system’s open
files limit is at least 65536. Check the current limits to verify this:

ulimit -a

To temporarily increase this limit for the life of your session, use the following command:

ulimit -n 65536

To increase this value in a persistent manner that will be enforced after restarting the system, add the following to /etc/system:

set rlim_fd_max=65536

Choosing a Version

SmartOS, albeit powerful, can make some easy tasks (like figuring out a “version” of SmartOS) difficult. Defining the correct version is a combination of the Global Zone snapshot version and the pkgsrc version in the guest zones. Here is the way to determine which Riak package to use.

The thing that really matters for Riak is what dataset was used to make the SmartOS VM. These datasets come from joyent and appear like this with the dsadm command: