Commits

Anonymous committed 4aa046a

Making mapred prefix and # of Spidermonkey VMs configurable

  • Participants
  • Parent commits 40650a5

Comments (0)

Files changed (2)

apps/riak/src/riak_sup.erl

                 {riak_stat, start_link, []},
                 permanent, 5000, worker, [riak_stat]},
     RiakJsMgr = {riak_js_manager,
-                 {riak_js_manager, start_link, [16]},
+                 {riak_js_manager, start_link, [riak:get_app_env(jsvm_count, 0)]},
                  permanent, 30000, worker, [riak_js_manager]},
     RiakJsSup = {riak_js_sup,
                  {riak_js_sup, start_link, []},

rel/overlay/etc/app.config

 
          %% raw_name is the first part of all URLS used by Riak's raw HTTP interface.
          %%  See riak_web.erl and raw_http_resource.erl for details.
-         {raw_name, "raw"}
+         {raw_name, "raw"},
+
+         %% mapred_name is URL used to submit map/reduce requests to Riak.
+         {mapred_name, "mapred"},
+
+         %% jsvm_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 lot of map/reduce
+         %% processing.
+         {jsvm_count, 8}
         ]},
 
  %% SASL config
          {error_logger_mf_maxfiles, 5}           % 5 files max
          ]}
 ].
-