Raise timeouts and restart allowances

This commit is contained in:
Ulf Wiger 2025-10-25 09:32:43 +02:00
parent bfccda2c3f
commit 8e795da00d
6 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,6 @@
{application,gmhive_client, {application,gmhive_client,
[{description,"Gajumaru Hive Client"}, [{description,"Gajumaru Hive Client"},
{vsn,"0.9.2"}, {vsn,"0.9.3"},
{registered,[]}, {registered,[]},
{applications,[kernel,stdlib,sasl,gproc,inets,ssl,enoise, {applications,[kernel,stdlib,sasl,gproc,inets,ssl,enoise,
gmconfig,gmhive_protocol,gmhive_worker]}, gmconfig,gmhive_protocol,gmhive_worker]},

View File

@ -21,7 +21,7 @@ start(Opts) ->
_ = lists:foreach(fun({K, V}) -> _ = lists:foreach(fun({K, V}) ->
application:set_env(gmhive_client, K, V) application:set_env(gmhive_client, K, V)
end, Opts), end, Opts),
application:ensure_all_started(gmhive_client). application:ensure_all_started(gmhive_client, permanent).
start(_StartType, _StartArgs) -> start(_StartType, _StartArgs) ->
set_things_up(), set_things_up(),

View File

@ -49,8 +49,8 @@ add_restart_info(Id, Opts) ->
init([]) -> init([]) ->
Mod = gmhc_connector, Mod = gmhc_connector,
SupFlags = #{ strategy => simple_one_for_one SupFlags = #{ strategy => simple_one_for_one
, intensity => 3 , intensity => 5
, period => 10 }, , period => 60 },
ChildSpecs = [ #{ id => Mod ChildSpecs = [ #{ id => Mod
, start => {Mod, start_link, []} , start => {Mod, start_link, []}
, type => worker , type => worker

View File

@ -28,7 +28,7 @@
-record(st, {pools = [], opts = #{}}). -record(st, {pools = [], opts = #{}}).
-define(CALL_TIMEOUT, 5000). -define(CALL_TIMEOUT, 10_000).
-include_lib("kernel/include/logger.hrl"). -include_lib("kernel/include/logger.hrl").

View File

@ -20,8 +20,8 @@ init([]) ->
, worker(gmhc_handler) , worker(gmhc_handler)
, supervisor(gmhc_connectors_sup) ], , supervisor(gmhc_connectors_sup) ],
SupFlags = #{ strategy => rest_for_one SupFlags = #{ strategy => rest_for_one
, intensity => 1 , intensity => 5 %% We really want the hive client to sort itself out
, period => 5 , period => 5*60 %% Timemout issues can happen infrequently
, auto_shutdown => never }, , auto_shutdown => never },
{ok, {SupFlags, ChildSpecs}}. {ok, {SupFlags, ChildSpecs}}.

View File

@ -2,9 +2,9 @@
{type,app}. {type,app}.
{modules,[]}. {modules,[]}.
{prefix,"gmhc"}. {prefix,"gmhc"}.
{desc,"Gajumaru Hive Client"}.
{author,"Ulf Wiger, QPQ AG"}. {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}}, {deps,[{"uwiger","gmhive_protocol",{0,2,0}},
{"uwiger","gmhive_worker",{0,5,1}}, {"uwiger","gmhive_worker",{0,5,1}},
{"uwiger","gmcuckoo",{1,2,4}}, {"uwiger","gmcuckoo",{1,2,4}},