dmt-client/config/sys.config

58 lines
1.8 KiB
Plaintext
Raw Normal View History

[
{dmt_client, [
{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, #{
recv_timeout => 60000,
connect_timeout => 1000
}},
{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, [
{scoper_woody_event_handler, #{
event_handler_opts => #{
formatter_opts => #{
max_length => 1000
}
}
}}
]},
{cache_update_interval, 5000}, % milliseconds
{cache_update_pull_limit, 10}, % event batch size
{max_cache_size, #{
elements => 20,
memory => 52428800 % 50Mb
}},
{cache_server_call_timeout, 10000},
{service_urls, #{
'Repository' => <<"dominant:8022/v1/domain/repository">>,
'RepositoryClient' => <<"dominant:8022/v1/domain/repository_client">>
}},
{health_check, #{
dmt_client => {dmt_client, health_check, []},
service => {erl_health, service, [<<"dmt_client">>]}
}}
]}
].