From 83e307674dbe2341e13156ac86bdedadb7edaef2 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Tue, 20 Sep 2016 21:03:56 +0000 Subject: [PATCH] revert to auto processor count for puma/rainbows --- puma_config.rb | 2 +- rainbows_config.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/puma_config.rb b/puma_config.rb index 7d1bad15..5fb01d68 100644 --- a/puma_config.rb +++ b/puma_config.rb @@ -21,7 +21,7 @@ daemonize pidfile '/var/run/neocities/neocities.pid' stdout_redirect '/var/log/neocities/neocities.log', '/var/log/neocities/neocities-errors.log', true quiet -workers 4 +workers processor_count worker_timeout 600 preload_app! on_worker_boot { DB.disconnect } diff --git a/rainbows_config.rb b/rainbows_config.rb index 04b41fe6..e30fd79a 100644 --- a/rainbows_config.rb +++ b/rainbows_config.rb @@ -21,7 +21,7 @@ Rainbows! do client_max_body_size 100*1024*1024 # 100 Megabytes - worker_processes 4 + worker_processes processor_count worker_connections 32 timeout 600 # 10 minutes