Skip to content

Commit

Permalink
Relax supervision max restart intensity (#1316)
Browse files Browse the repository at this point in the history
Move from 5 restarts in 1 minute to 10 restarts in 10 seconds.
Background jobs are often not critical. This change should prevent
unnecessary node crashes.
  • Loading branch information
robertoaloi authored May 26, 2022
1 parent d5f6dce commit de41fd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/els_lsp/src/els_background_job_sup.erl
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ start_link() ->
init([]) ->
SupFlags = #{
strategy => simple_one_for_one,
intensity => 5,
period => 60
intensity => 10,
period => 10
},
ChildSpecs = [
#{
Expand Down

0 comments on commit de41fd1

Please sign in to comment.