2016-08-24 11:27:31 +00:00
|
|
|
[
|
2019-06-25 16:08:15 +00:00
|
|
|
{kernel, [
|
|
|
|
{logger_level, info},
|
|
|
|
{logger, [
|
|
|
|
{handler, default, logger_std_h, #{
|
|
|
|
config => #{
|
|
|
|
type => file,
|
|
|
|
file => "/var/log/dominant/console.json"
|
|
|
|
},
|
|
|
|
formatter => {logger_logstash_formatter, #{}}
|
|
|
|
}}
|
|
|
|
]}
|
|
|
|
]},
|
2017-11-17 15:52:52 +00:00
|
|
|
|
2016-09-07 19:43:14 +00:00
|
|
|
{dmt_api, [
|
2020-06-29 16:36:09 +00:00
|
|
|
{repository, dmt_api_repository_v5},
|
2018-07-06 13:33:49 +00:00
|
|
|
{migration, #{
|
2022-08-25 08:12:47 +00:00
|
|
|
timeout => 360,
|
|
|
|
limit => 20,
|
2020-07-07 14:26:56 +00:00
|
|
|
read_only_gap => 1000
|
2018-07-06 13:33:49 +00:00
|
|
|
}},
|
2016-11-23 11:52:43 +00:00
|
|
|
{ip, "::"},
|
2017-04-03 12:48:41 +00:00
|
|
|
{port, 8022},
|
2019-12-04 10:14:51 +00:00
|
|
|
{default_woody_handling_timeout, 30000},
|
2020-01-31 12:09:00 +00:00
|
|
|
{woody_event_handlers, [
|
|
|
|
{scoper_woody_event_handler, #{
|
|
|
|
event_handler_opts => #{
|
|
|
|
formatter_opts => #{
|
|
|
|
max_length => 1000,
|
|
|
|
max_printable_string_length => 80
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
]},
|
2019-06-25 16:08:15 +00:00
|
|
|
{transport_opts, #{
|
2019-09-10 16:42:29 +00:00
|
|
|
max_connections => 1024
|
|
|
|
}},
|
|
|
|
{protocol_opts, #{
|
|
|
|
% http keep alive timeout in ms
|
|
|
|
request_timeout => 60000,
|
|
|
|
% Should be greater than any other timeouts
|
|
|
|
idle_timeout => infinity
|
2019-06-25 16:08:15 +00:00
|
|
|
}},
|
2022-08-25 08:12:47 +00:00
|
|
|
% 50Mb
|
|
|
|
{max_cache_size, 52428800},
|
|
|
|
{health_check, #{
|
|
|
|
disk => {erl_health, disk, ["/", 99]},
|
|
|
|
memory => {erl_health, cg_memory, [99]},
|
|
|
|
service => {erl_health, service, [<<"dominant">>]}
|
|
|
|
}},
|
2019-09-10 16:42:29 +00:00
|
|
|
{services, #{
|
|
|
|
automaton => #{
|
|
|
|
url => "http://machinegun:8022/v1/automaton",
|
|
|
|
transport_opts => #{
|
|
|
|
pool => woody_automaton,
|
|
|
|
timeout => 1000,
|
|
|
|
max_connections => 1024
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}}
|
2016-10-10 16:27:02 +00:00
|
|
|
]},
|
2017-11-17 15:52:52 +00:00
|
|
|
|
2019-06-25 16:08:15 +00:00
|
|
|
{os_mon, [
|
|
|
|
% for better compatibility with busybox coreutils
|
|
|
|
{disksup_posix_only, true}
|
2017-11-17 15:52:52 +00:00
|
|
|
]},
|
|
|
|
|
2019-06-25 16:08:15 +00:00
|
|
|
{scoper, [
|
|
|
|
{storage, scoper_storage_logger}
|
2020-07-28 09:54:00 +00:00
|
|
|
]},
|
|
|
|
|
|
|
|
{snowflake, [
|
|
|
|
{max_backward_clock_moving, 1000}, % 1 second
|
|
|
|
{machine_id, hostname_hash}
|
2020-10-23 14:45:41 +00:00
|
|
|
]},
|
|
|
|
|
|
|
|
{prometheus, [
|
|
|
|
{collectors, [default]}
|
2021-06-18 09:22:47 +00:00
|
|
|
]},
|
|
|
|
|
|
|
|
{how_are_you, [
|
|
|
|
{metrics_publishers, [
|
|
|
|
% {hay_statsd_publisher, #{
|
|
|
|
% key_prefix => <<"dominant.">>,
|
|
|
|
% host => "localhost",
|
|
|
|
% port => 8125
|
|
|
|
% }}
|
|
|
|
]}
|
|
|
|
]}
|
2016-08-24 11:27:31 +00:00
|
|
|
].
|