-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathapp.config
More file actions
86 lines (80 loc) · 2.28 KB
/
app.config
File metadata and controls
86 lines (80 loc) · 2.28 KB
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
86
%% IMPORTANT LIMITATION: PoolName should be uniqe amongst all clusters.
%%
%% RiakPoolConfig :: [RiakPoolOptions].
%% RiakPoolOptions :: {clusters, [ClusterOptions]} |
%% {default_cluster, ClusterName :: atom()}.
%%
%% ClusterOptions :: {ClusterName :: atom(), [KeepAliveOption], [PoolOptions]}.
%% KeepAliveOption :: {ping_request_timeout, non_neg_integer()} |
%% {rec_timer, [ReconnectTimerOption]}.
%% ReconnectTimerOption :: {value, non_neg_integer()} |
%% {factor, non_neg_integer()} |
%% {incr, non_neg_integer()} |
%% {max_value, non_neg_integer()}.
%%
%% PoolOptions :: {PoolName :: atom(), [SizeOption], [ConnectionOption]}.
%% SizeOption :: {max_overflow, non_neg_integer()} |
%% {size, non_neg_integer()}.
%% ConnectionOption :: {host, Address} | {port, non_neg_integer()}.
%% Address :: string() | atom() | inet:ip_address()
[
{main_application,
[
{riak_cluster, main_cluster}
]},
{statistic_applications,
[
{riak_cluster, statistic_cluster}
]},
{riak_pool,
[
%% This param make a hint to pool what cluster should be used when
%% application:get_env(riak_cluster) return undefined
{default_cluster, main_cluster},
{clusters,
[
%% {ClusterName, KeepAliveOptions, PoolsList}
{main_cluster,
[
%% keep alive options
{ping_request_timeout, 1500},
{rec_timer, [
{value, 200},
{factor, 2},
{incr, 0},
{max_value, 15000}
]}
],
[
{riak_pool_main_riak1,
[{size, 10}, {max_overflow, 10}],
[
{host, "10.10.18.94"},
{port, 8087}
]},
{riak_pool_main_riak2,
[{size, 10}, {max_overflow, 10}],
[
{host, "10.10.18.98"},
{port, 8087}
]},
{riak_pool_main_riak3,
[{size, 10}, {max_overflow, 10}],
[
{host, "10.10.18.100"},
{port, 8087}
]}
]},
{statistic_cluster,
[],
[
{riak_pool_stat_riak1,
[{size, 10}, {max_overflow, 10}],
[
{host, "10.10.18.62"},
{port, 8087}
]}
]}
]}
]}
].