/
riak_core.app.src
85 lines (74 loc) · 2.46 KB
/
riak_core.app.src
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 et
{application, riak_core,
[
{description, "Riak Core"},
{vsn, git},
{modules, []},
{registered, []},
{included_applications, [riak_ensemble]},
{applications, [
kernel,
stdlib,
sasl,
crypto,
ssl,
runtime_tools,
inets,
compiler,
riak_sysmon,
os_mon,
eleveldb,
pbkdf2,
poolboy,
exometer_core,
clique,
cluster_info,
basho_stats
]},
{mod, {riak_core_app, []}},
{env, [
%% Cluster name
{cluster_name, "default"},
%% Default location for ring, cluster and other data files
{platform_data_dir, "data"},
%% Default ring creation size. Make sure it is a power of 2,
%% e.g. 16, 32, 64, 128, 256, 512 etc
{ring_creation_size, 64},
%% Default gossip interval (milliseconds)
{gossip_interval, 60000},
%% Target N value
{target_n_val, 4},
%% Default claims functions
{wants_claim_fun,
{riak_core_membership_claim, default_wants_claim}},
{choose_claim_fun,
{riak_core_membership_claim, default_choose_claim}},
%% Vnode inactivity timeout (how often to check if fallback vnodes
%% should return their data) in ms.
{vnode_inactivity_timeout, 60000},
%% Number of VNodes allowed to do handoff concurrently.
{handoff_concurrency, 2},
%% Disable Nagle on HTTP sockets
{disable_http_nagle, true},
%% Handoff IP/port
{handoff_port, 8099},
{handoff_ip, "0.0.0.0"},
%% Disterl buffer sizes in bytes.
%% These sizes (3*128*1024 & 6*128*1024) were
%% derived from a limited amount of testing in a
%% 10GE environment, and may need tuning for your
%% network and workload. In particular they're likely
%% too small to be optimal for larger object sizes.
{dist_send_buf_size, 393216},
{dist_recv_buf_size, 786432},
%% Exometer defaults
{exometer_defaults,
[
{['_'], histogram, [{options,
[{histogram_module, exometer_slot_slide},
{keep_high, 500}]}
]}
]}
]}
]}.