From de41fd1f998e6db425fa61ba17e6fe5ae3c17c56 Mon Sep 17 00:00:00 2001 From: Roberto Aloi Date: Thu, 26 May 2022 11:52:40 +0200 Subject: [PATCH] Relax supervision max restart intensity (#1316) 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. --- apps/els_lsp/src/els_background_job_sup.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/els_lsp/src/els_background_job_sup.erl b/apps/els_lsp/src/els_background_job_sup.erl index 4b8258e9c..96b148f22 100644 --- a/apps/els_lsp/src/els_background_job_sup.erl +++ b/apps/els_lsp/src/els_background_job_sup.erl @@ -37,8 +37,8 @@ start_link() -> init([]) -> SupFlags = #{ strategy => simple_one_for_one, - intensity => 5, - period => 60 + intensity => 10, + period => 10 }, ChildSpecs = [ #{