mirror of
https://github.com/valitydev/party-management.git
synced 2024-11-06 09:15:18 +00:00
f757b7905b
* TD-262: Move from shumpune to accounter * Fix spec * Add test * Fix
91 lines
2.6 KiB
Plaintext
91 lines
2.6 KiB
Plaintext
[
|
|
{kernel, [
|
|
{logger_sasl_compatible, false},
|
|
{logger_level, info},
|
|
{logger, [
|
|
{handler, default, logger_std_h, #{
|
|
level => error,
|
|
config => #{
|
|
type => standard_error
|
|
},
|
|
formatter => {logger_formatter, #{
|
|
depth => 30
|
|
}}
|
|
}},
|
|
{handler, console_logger, logger_std_h, #{
|
|
level => debug,
|
|
config => #{
|
|
type => {file, "/var/log/party-management/console.json"},
|
|
sync_mode_qlen => 20
|
|
},
|
|
formatter => {logger_logstash_formatter, #{}}
|
|
}}
|
|
]}
|
|
]},
|
|
|
|
{scoper, [
|
|
{storage, scoper_storage_logger}
|
|
]},
|
|
|
|
{party_management, [
|
|
{scoper_event_handler_options, #{
|
|
event_handler_opts => #{
|
|
formatter_opts => #{
|
|
max_length => 1000
|
|
}
|
|
}
|
|
}},
|
|
{services, #{
|
|
automaton => "http://machinegun:8022/v1/automaton",
|
|
accounter => "http://shumway:8022/accounter"
|
|
}},
|
|
{cache_options, #{ %% see `pm_party_cache:cache_options/0`
|
|
memory => 209715200, % 200Mb, cache memory quota in bytes
|
|
ttl => 3600,
|
|
size => 3000
|
|
}}
|
|
]},
|
|
|
|
{dmt_client, [
|
|
% для интеграционных берем latest_version из доминанты
|
|
{use_cached_last_version, false},
|
|
{cache_update_interval, 5000}, % milliseconds
|
|
{max_cache_size, #{
|
|
elements => 20,
|
|
memory => 52428800 % 50Mb
|
|
}},
|
|
{woody_event_handlers, [
|
|
{scoper_woody_event_handler, #{
|
|
event_handler_opts => #{
|
|
formatter_opts => #{
|
|
max_length => 1000
|
|
}
|
|
}
|
|
}}
|
|
]},
|
|
{service_urls, #{
|
|
'Repository' => <<"http://dominant:8022/v1/domain/repository">>,
|
|
'RepositoryClient' => <<"http://dominant:8022/v1/domain/repository_client">>
|
|
}}
|
|
]},
|
|
|
|
{how_are_you, [
|
|
{metrics_publishers, [
|
|
% {hay_statsd_publisher, #{
|
|
% key_prefix => <<"hellgate.">>,
|
|
% host => "localhost",
|
|
% port => 8125
|
|
% }}
|
|
]}
|
|
]},
|
|
|
|
{snowflake, [
|
|
{max_backward_clock_moving, 1000}, % 1 second
|
|
{machine_id, hostname_hash}
|
|
]},
|
|
|
|
{prometheus, [
|
|
{collectors, [default]}
|
|
]}
|
|
].
|