Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.config
- %% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
- %% ex: ts=4 sw=4 et
- [
- %% Riak Core config
- {riak_core, [
- %% Default location of ringstate
- {ring_state_dir, "/var/lib/riak/ring"},
- %% http is a list of IP addresses and TCP ports that the Riak
- %% HTTP interface will bind.
- {http, [ {"127.0.0.1", 8098 } ]},
- %% https is a list of IP addresses and TCP ports that the Riak
- %% HTTPS interface will bind.
- %{https, [{ "127.0.0.1", 8098 }]},
- %% default cert and key locations for https can be overridden
- %% with the ssl config variable
- %{ssl, [
- % {certfile, "etc/cert.pem"},
- % {keyfile, "etc/key.pem"}
- % ]},
- %% riak_handoff_port is the TCP port that Riak uses for
- %% intra-cluster data handoff.
- {handoff_port, 8099 }
- ]},
- %% Riak KV config
- {riak_kv, [
- %% Storage_backend specifies the Erlang module defining the storage
- %% mechanism that will be used on this node.
- {storage_backend, riak_kv_bitcask_backend},
- %% pb_ip is the IP address that the Riak Protocol Buffers interface
- %% will bind to. If this is undefined, the interface will not run.
- {pb_ip, "127.0.0.1" },
- %% pb_port is the TCP port that the Riak Protocol Buffers interface
- %% will bind to
- {pb_port, 8087 },
- %% raw_name is the first part of all URLS used by the Riak raw HTTP
- %% interface. See riak_web.erl and raw_http_resource.erl for
- %% details.
- %{raw_name, "riak"},
- %% mapred_name is URL used to submit map/reduce requests to Riak.
- {mapred_name, "mapred"},
- %% directory used to store a transient queue for pending
- %% map tasks
- {mapred_queue_dir, "/var/lib/riak/mr_queue" },
- %% Each of the following entries control how many Javascript
- %% virtual machines are available for executing map, reduce,
- %% pre- and post-commit hook functions.
- {map_js_vm_count, 8 },
- {reduce_js_vm_count, 6 },
- {hook_js_vm_count, 2 },
- %% Number of items the mapper will fetch in one request.
- %% Larger values can impact read/write performance for
- %% non-MapReduce requests.
- {mapper_batch_size, 5},
- %% js_max_vm_mem is the maximum amount of memory, in megabytes,
- %% allocated to the Javascript VMs. If unset, the default is
- %% 8MB.
- {js_max_vm_mem, 8},
- %% js_thread_stack is the maximum amount of thread stack, in megabyes,
- %% allocate to the Javascript VMs. If unset, the default is 16MB.
- %% NOTE: This is not the same as the C thread stack.
- {js_thread_stack, 16},
- %% Number of objects held in the MapReduce cache. These will be
- %% ejected when the cache runs out of room or the bucket/key
- %% pair for that entry changes
- {map_cache_size, 10000},
- %% 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_kv_stat, true}
- ]},
- %% Bitcask Config
- {bitcask, [
- {data_root, "/var/lib/riak/bitcask"}
- ]},
- %% Luwak Config
- {luwak, [
- {enabled, false}
- ]},
- %% Riak_err Config
- {riak_err, [
- %% Info/error/warning reports larger than this will be considered
- %% too big to be formatted safely with the user-supplied format
- %% string.
- {term_max_size, 65536},
- %% Limit the total size of formatted info/error/warning reports.
- {fmt_max_bytes, 65536}
- ]},
- %% SASL config
- {sasl, [
- {sasl_error_logger, {file, "/var/log/riak/sasl-error.log"}},
- {errlog_type, error},
- {error_logger_mf_dir, "/var/log/riak/sasl"}, % Log directory
- {error_logger_mf_maxbytes, 10485760}, % 10 MB max file size
- {error_logger_mf_maxfiles, 5} % 5 files max
- ]}
- ].
Advertisement
Add Comment
Please, Sign In to add comment