-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsys.config
More file actions
148 lines (120 loc) · 4.32 KB
/
Copy pathsys.config
File metadata and controls
148 lines (120 loc) · 4.32 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
[
%% learn config
{learn, [
%% @ Todo Add Opts...
{limit1, 0},
{limit2, 1000},
{currencies, [{cur1, "UAH"}]},
%%===================================================================================================================
%% PSQL Pool Conf
%%===================================================================================================================
{db_pool_conf,
[ %% Db(Psql) PoolConf
{pool1, [
{size, 50},
{max_overflow, 20}
],
[
{hostname, "localhost"},
{database, "postgres"},
{username, "postgres"},
{password, "postgres"}
]
}]
},
{rabbitmq_conf, [
{interval, 30000}, %% MSeconds
{close_after, 1800} %% Seconds
]},
{rabbit_pool_conf,
[ %%Pool for RabbitMQ connectors
{rabbit_pool, [
{size, 15},
{max_overflow, 5}
],
[{host, "localhost"},
{password, "password"},
{username, "admin"}]
}]
},
{redis_pool_conf,
[
{%session_storage_pool_new
redis_pool , [
{size, 50},
{max_overflow, 20}
],
[
{hostname, "localhost"},
{port, 6379},
{password, ""}
]
}]
}
%% {redis_pool_conf,
%% [ %% Db(Psql) PoolConf
%% {pool1, [
%% {size, 50},
%% {max_overflow, 20}
%% ],
%% [
%% {hostname, "localhost"},
%% {database, "postgres"},
%% {username, "postgres"},
%% {password, "postgres"}
%% ]
%% }]
%% },
%% {redis_pool_conf, [
%% {session_storage_pool_new, [
%% {host,"10.1.108.10"},
%% {port, 6379},
%% {password, "ljcneg123"},
%% {start_size, 5},
%% {min_size, 5},
%% {max_size, 30}
%% ]},
%% {session_storage_pool_old, [
%% {host,"10.1.100.108"},
%% {port, 6379},
%% {password, "Ies1zah3"},
%% {start_size, 5},
%% {min_size, 5},
%% {max_size, 30}
%% ]}
%% ]}
]},
{lager, [
%% What handlers to install with what arguments
%% The defaults for the logfiles are to rotate the files when
%% they reach 10Mb or at midnight, whichever comes first, and keep
%% the last 31 rotations.
{handlers, [
{lager_console_backend, debug},
{lager_file_backend, [{file, "log/error.log"}, {level, error}, {size, 1073741824}, {date, "$D0"}, {count, 10}]}, %% 1Gb
{lager_file_backend, [{file, "log/warning.log"}, {level, warning}, {size, 1073741824}, {date, "$D0"}, {count, 10}]}, %% 1Gb
{lager_file_backend, [{file, "log/info.log"}, {level, info}, {size, 1073741824}, {date, "$D0"}, {count, 20}]}, %% 1Gb
{lager_file_backend, [{file, "log/debug.log"}, {level, debug}, {size, 1073741824}, {date, "$D0"}, {count, 2}]} %% 1Gb
]},
%% Whether to write a crash log, and where.
%% Commented/omitted/undefined means no crash logger.
{crash_log, "log/crash.log"},
%% Maximum size in bytes of events in the crash log - defaults to 65536
{crash_log_msg_size, 65536},
%% Maximum size of the crash log in bytes, before its rotated, set
%% to 0 to disable rotation - default is 0
{crash_log_size, 10485760},
%% What time to rotate the crash log - default is no time
%% rotation.
{crash_log_date, "$D0"},
%% Number of rotated crash logs to keep, 0 means keep only the
%% current one - default is 0
{crash_log_count, 5},
%% Whether to redirect error_logger messages into lager - defaults to true
% {error_logger_redirect, true},
{error_logger_hwm, 400}
]},
{sasl, [
{sasl_error_logger, false}
]}
].