2017-05-12 09:29:13 +00:00
|
|
|
[
|
|
|
|
{dmt_client, [
|
2019-12-19 12:36:08 +00:00
|
|
|
{ip, "::"},
|
|
|
|
{port, 8022},
|
|
|
|
%% 1 sec above cowboy's request_timeout
|
|
|
|
{shutdown_timeout, 7000},
|
|
|
|
{protocol_opts, #{
|
|
|
|
% Bump keepalive timeout up to a minute
|
|
|
|
request_timeout => 6000,
|
|
|
|
% Should be greater than any other timeouts
|
|
|
|
idle_timeout => infinity
|
|
|
|
}},
|
|
|
|
{server_transport_opts, #{
|
|
|
|
% Keeping the default value
|
|
|
|
max_connections => 8096
|
|
|
|
}},
|
|
|
|
{client_transport_opts, #{
|
2019-05-07 14:31:16 +00:00
|
|
|
recv_timeout => 60000,
|
|
|
|
connect_timeout => 1000
|
|
|
|
}},
|
2019-12-19 12:36:08 +00:00
|
|
|
{server_woody_event_handlers, [
|
|
|
|
{scoper_woody_event_handler, #{
|
|
|
|
event_handler_opts => #{
|
|
|
|
formatter_opts => #{
|
|
|
|
max_length => 1000,
|
|
|
|
max_depth => 10,
|
|
|
|
max_pritable_string_length => 40
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
]},
|
|
|
|
{client_woody_event_handlers, [
|
2019-12-13 13:26:39 +00:00
|
|
|
{scoper_woody_event_handler, #{
|
|
|
|
event_handler_opts => #{
|
|
|
|
formatter_opts => #{
|
|
|
|
max_length => 1000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
]},
|
2017-05-12 09:29:13 +00:00
|
|
|
{cache_update_interval, 5000}, % milliseconds
|
2018-08-30 10:24:09 +00:00
|
|
|
{cache_update_pull_limit, 10}, % event batch size
|
2017-05-18 09:48:42 +00:00
|
|
|
{max_cache_size, #{
|
|
|
|
elements => 20,
|
|
|
|
memory => 52428800 % 50Mb
|
|
|
|
}},
|
2019-04-25 09:43:46 +00:00
|
|
|
{cache_server_call_timeout, 10000},
|
2017-05-12 09:29:13 +00:00
|
|
|
{service_urls, #{
|
|
|
|
'Repository' => <<"dominant:8022/v1/domain/repository">>,
|
|
|
|
'RepositoryClient' => <<"dominant:8022/v1/domain/repository_client">>
|
2019-12-19 12:36:08 +00:00
|
|
|
}},
|
|
|
|
{health_check, #{
|
|
|
|
dmt_client => {dmt_client, health_check, []},
|
|
|
|
service => {erl_health, service, [<<"dmt_client">>]}
|
2017-05-12 09:29:13 +00:00
|
|
|
}}
|
|
|
|
]}
|
2018-06-19 11:44:35 +00:00
|
|
|
].
|