3/31/2010 - 8:12 PM


%% -*- mode: erlang -*-
 %% Riak config
 {riak, [
         %% storage_backend specifies the Erlang module defining the storage mechanism
         %%  that will be used on this node.
         %% {storage_backend, riak_dets_backend},
         {storage_backend, innostore_riak},

         %% Different storage backends can use other configuration variables.  For
         %%  instance, riak_dets_backend_root determines the directory under which
         %%  dets files will be placed.
         {riak_dets_backend_root, "/var/lib/riak/dets"},

         %% Default location of ringstate
         {ring_state_dir, "/var/lib/riak/ring"},

         %% riak_web_ip is the IP address that Riak's HTTP interface will bind to.
         %%  If this is undefined, the HTTP interface will not run.
         {riak_web_ip, ""},

         %% riak_web_port is the TCP port that Riak's HTTP interface will bind to.
         {riak_web_port, 8098},

         %% riak_handoff_port is the TCP port that Riak uses for intra-cluster
         %% data handoff.
         {riak_handoff_port, 8099},

         %% mapred_name is URL used to submit map/reduce requests to Riak.
         {mapred_name, "mapred"},

         %% js_vm_count is the number of Javascript VMs to start per Riak node.
         %% 8 is a good default for smaller installations. A larger number like
         %% 12 or 16 is appropriate for installations handling lots of map/reduce
         %% processing.
         {js_vm_count, 8},

         %% js_source_dir should point to a directory containing Javascript source
         %% files which will be loaded by Riak when it initializes Javascript VMs.
         %{js_source_dir, "/tmp/js_source"}

         %% riak_stat enables the use of the "riak-admin status" command to
         %% retrieve information the Riak node for performance and debugging needs
         {riak_stat, true}

%% Inno db config
  {innostore, [
               {data_home_dir,            "/var/lib/riak/innodb"},
               {log_group_home_dir,       "/var/lib/riak/innodb"},
               {buffer_pool_size,         2147483648} %% 2G of buffer
 %% SASL config
 {sasl, [
         {sasl_error_logger, {file, "/var/log/riak/sasl-error.log"}},
         {errlog_type, error},
         {error_logger_mf_dir, "log/sasl"},      % Log directory
         {error_logger_mf_maxbytes, 10485760},   % 10 MB max file size
         {error_logger_mf_maxfiles, 5}           % 5 files max