sohil

Untitled

Sep 27th, 2011
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.65 KB | None | 0 0
  1. app.config
  2.  
  3. %% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
  4. %% ex: ts=4 sw=4 et
  5. [
  6. %% Riak Core config
  7. {riak_core, [
  8. %% Default location of ringstate
  9. {ring_state_dir, "/var/lib/riak/ring"},
  10.  
  11. %% http is a list of IP addresses and TCP ports that the Riak
  12. %% HTTP interface will bind.
  13. {http, [ {"127.0.0.1", 8098 } ]},
  14.  
  15. %% https is a list of IP addresses and TCP ports that the Riak
  16. %% HTTPS interface will bind.
  17. %{https, [{ "127.0.0.1", 8098 }]},
  18.  
  19. %% default cert and key locations for https can be overridden
  20. %% with the ssl config variable
  21. %{ssl, [
  22. % {certfile, "etc/cert.pem"},
  23. % {keyfile, "etc/key.pem"}
  24. % ]},
  25.  
  26. %% riak_handoff_port is the TCP port that Riak uses for
  27. %% intra-cluster data handoff.
  28. {handoff_port, 8099 }
  29. ]},
  30.  
  31. %% Riak KV config
  32. {riak_kv, [
  33. %% Storage_backend specifies the Erlang module defining the storage
  34. %% mechanism that will be used on this node.
  35. {storage_backend, riak_kv_bitcask_backend},
  36.  
  37. %% pb_ip is the IP address that the Riak Protocol Buffers interface
  38. %% will bind to. If this is undefined, the interface will not run.
  39. {pb_ip, "127.0.0.1" },
  40.  
  41. %% pb_port is the TCP port that the Riak Protocol Buffers interface
  42. %% will bind to
  43. {pb_port, 8087 },
  44.  
  45. %% raw_name is the first part of all URLS used by the Riak raw HTTP
  46. %% interface. See riak_web.erl and raw_http_resource.erl for
  47. %% details.
  48. %{raw_name, "riak"},
  49.  
  50. %% mapred_name is URL used to submit map/reduce requests to Riak.
  51. {mapred_name, "mapred"},
  52.  
  53. %% directory used to store a transient queue for pending
  54. %% map tasks
  55. {mapred_queue_dir, "/var/lib/riak/mr_queue" },
  56.  
  57. %% Each of the following entries control how many Javascript
  58. %% virtual machines are available for executing map, reduce,
  59. %% pre- and post-commit hook functions.
  60. {map_js_vm_count, 8 },
  61. {reduce_js_vm_count, 6 },
  62. {hook_js_vm_count, 2 },
  63.  
  64. %% Number of items the mapper will fetch in one request.
  65. %% Larger values can impact read/write performance for
  66. %% non-MapReduce requests.
  67. {mapper_batch_size, 5},
  68.  
  69. %% js_max_vm_mem is the maximum amount of memory, in megabytes,
  70. %% allocated to the Javascript VMs. If unset, the default is
  71. %% 8MB.
  72. {js_max_vm_mem, 8},
  73.  
  74. %% js_thread_stack is the maximum amount of thread stack, in megabyes,
  75. %% allocate to the Javascript VMs. If unset, the default is 16MB.
  76. %% NOTE: This is not the same as the C thread stack.
  77. {js_thread_stack, 16},
  78.  
  79. %% Number of objects held in the MapReduce cache. These will be
  80. %% ejected when the cache runs out of room or the bucket/key
  81. %% pair for that entry changes
  82. {map_cache_size, 10000},
  83.  
  84. %% js_source_dir should point to a directory containing Javascript
  85. %% source files which will be loaded by Riak when it initializes
  86. %% Javascript VMs.
  87. %{js_source_dir, "/tmp/js_source"},
  88.  
  89. %% riak_stat enables the use of the "riak-admin status" command to
  90. %% retrieve information the Riak node for performance and debugging needs
  91. {riak_kv_stat, true}
  92. ]},
  93.  
  94. %% Bitcask Config
  95. {bitcask, [
  96. {data_root, "/var/lib/riak/bitcask"}
  97. ]},
  98.  
  99. %% Luwak Config
  100. {luwak, [
  101. {enabled, false}
  102. ]},
  103.  
  104. %% Riak_err Config
  105. {riak_err, [
  106. %% Info/error/warning reports larger than this will be considered
  107. %% too big to be formatted safely with the user-supplied format
  108. %% string.
  109. {term_max_size, 65536},
  110.  
  111. %% Limit the total size of formatted info/error/warning reports.
  112. {fmt_max_bytes, 65536}
  113. ]},
  114.  
  115. %% SASL config
  116. {sasl, [
  117. {sasl_error_logger, {file, "/var/log/riak/sasl-error.log"}},
  118. {errlog_type, error},
  119. {error_logger_mf_dir, "/var/log/riak/sasl"}, % Log directory
  120. {error_logger_mf_maxbytes, 10485760}, % 10 MB max file size
  121. {error_logger_mf_maxfiles, 5} % 5 files max
  122. ]}
  123. ].
  124.  
  125.  
Advertisement
Add Comment
Please, Sign In to add comment