From f468b261dd160862cc24e93eab05d11b827fb226 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Tue, 10 May 2022 00:19:19 +0000 Subject: [PATCH] No threading for the moment to address bugs, set CPU manually --- puma_config.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/puma_config.rb b/puma_config.rb index 3671990e..2bb939dc 100644 --- a/puma_config.rb +++ b/puma_config.rb @@ -1,12 +1,14 @@ require 'facter' -threads 5, 5 +threads 1, 1 +#threads 5, 5 environment 'production' #daemonize pidfile '/var/run/neocities/neocities.pid' stdout_redirect '/var/log/neocities/neocities.stdout.log', '/var/log/neocities/neocities.stderr.log', true quiet -workers Facter.value('processors')['count'] +workers 8 +#workers Facter.value('processors')['count'] preload_app! on_worker_boot { DB.disconnect } bind 'unix:/var/run/neocities/neocities.sock?backlog=2048'