From f70a73c9a2eeae06683e88e845c30196dc677fe9 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Thu, 2 Nov 2023 17:30:42 +0100 Subject: [PATCH] Puma: Disable automatic reforking --- config/puma.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/puma.rb b/config/puma.rb index d85b1048..35409fd4 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -56,7 +56,9 @@ prune_bundler # Fork all workers from worker 0 to reduce memory footprint and allow phased restarts. # For successful phased restarts, we need at least 3 workers (see doc). # See https://github.com/puma/puma/blob/master/docs/fork_worker.md. -fork_worker +# Passing `0` will disable automatic reforking, which currently breaks with SdNotify. +# See https://github.com/puma/puma/issues/3273. +fork_worker 0 # Disable explicit preloading of our app. # With `fork_worker`, we will have an implicit preloading.