From cb376e373096e477c57e3b36da4619f089a61c5f Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 27 Aug 2015 16:19:36 -0300 Subject: [PATCH] gitlab: use on worker per CPU --- cookbooks/gitlab/files/unicorn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/gitlab/files/unicorn.rb b/cookbooks/gitlab/files/unicorn.rb index 561b726..5f39953 100644 --- a/cookbooks/gitlab/files/unicorn.rb +++ b/cookbooks/gitlab/files/unicorn.rb @@ -16,7 +16,7 @@ ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab" # Read about unicorn workers here: # http://doc.gitlab.com/ee/install/requirements.html#unicorn-workers # -worker_processes 2 +worker_processes `nproc`.to_i # Since Unicorn is never exposed to outside clients, it does not need to # run on the standard HTTP port (80), there is no reason to start Unicorn -- libgit2 0.21.2