Raise timeouts and restart allowances
This commit is contained in:
parent
bfccda2c3f
commit
8e795da00d
@ -1,6 +1,6 @@
|
||||
{application,gmhive_client,
|
||||
[{description,"Gajumaru Hive Client"},
|
||||
{vsn,"0.9.2"},
|
||||
{vsn,"0.9.3"},
|
||||
{registered,[]},
|
||||
{applications,[kernel,stdlib,sasl,gproc,inets,ssl,enoise,
|
||||
gmconfig,gmhive_protocol,gmhive_worker]},
|
||||
|
||||
@ -21,7 +21,7 @@ start(Opts) ->
|
||||
_ = lists:foreach(fun({K, V}) ->
|
||||
application:set_env(gmhive_client, K, V)
|
||||
end, Opts),
|
||||
application:ensure_all_started(gmhive_client).
|
||||
application:ensure_all_started(gmhive_client, permanent).
|
||||
|
||||
start(_StartType, _StartArgs) ->
|
||||
set_things_up(),
|
||||
|
||||
@ -49,8 +49,8 @@ add_restart_info(Id, Opts) ->
|
||||
init([]) ->
|
||||
Mod = gmhc_connector,
|
||||
SupFlags = #{ strategy => simple_one_for_one
|
||||
, intensity => 3
|
||||
, period => 10 },
|
||||
, intensity => 5
|
||||
, period => 60 },
|
||||
ChildSpecs = [ #{ id => Mod
|
||||
, start => {Mod, start_link, []}
|
||||
, type => worker
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
|
||||
-record(st, {pools = [], opts = #{}}).
|
||||
|
||||
-define(CALL_TIMEOUT, 5000).
|
||||
-define(CALL_TIMEOUT, 10_000).
|
||||
|
||||
-include_lib("kernel/include/logger.hrl").
|
||||
|
||||
|
||||
@ -20,8 +20,8 @@ init([]) ->
|
||||
, worker(gmhc_handler)
|
||||
, supervisor(gmhc_connectors_sup) ],
|
||||
SupFlags = #{ strategy => rest_for_one
|
||||
, intensity => 1
|
||||
, period => 5
|
||||
, intensity => 5 %% We really want the hive client to sort itself out
|
||||
, period => 5*60 %% Timemout issues can happen infrequently
|
||||
, auto_shutdown => never },
|
||||
{ok, {SupFlags, ChildSpecs}}.
|
||||
|
||||
|
||||
@ -2,9 +2,9 @@
|
||||
{type,app}.
|
||||
{modules,[]}.
|
||||
{prefix,"gmhc"}.
|
||||
{desc,"Gajumaru Hive Client"}.
|
||||
{author,"Ulf Wiger, QPQ AG"}.
|
||||
{package_id,{"uwiger","gmhive_client",{0,9,2}}}.
|
||||
{desc,"Gajumaru Hive Client"}.
|
||||
{package_id,{"uwiger","gmhive_client",{0,9,3}}}.
|
||||
{deps,[{"uwiger","gmhive_protocol",{0,2,0}},
|
||||
{"uwiger","gmhive_worker",{0,5,1}},
|
||||
{"uwiger","gmcuckoo",{1,2,4}},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user