Increase maximum restart strategy of the ODBC supervisor. Do not brutally kill ODBC processes on supervisor shutdown to avoid polution of the mnesia table

This commit is contained in:
Evgeniy Khramtsov 2010-12-01 14:24:51 +09:00
parent b8f04aae6f
commit 8520b76483
1 changed files with 2 additions and 2 deletions

View File

@ -89,13 +89,13 @@ init([Host]) ->
?DEFAULT_ODBC_START_INTERVAL]),
?DEFAULT_ODBC_START_INTERVAL
end,
{ok, {{one_for_one, PoolSize*2, 1},
{ok, {{one_for_one, PoolSize*10, 1},
lists:map(
fun(I) ->
{I,
{ejabberd_odbc, start_link, [Host, StartInterval*1000]},
transient,
brutal_kill,
2000,
worker,
[?MODULE]}
end, lists:seq(1, PoolSize))}}.