Commit 5f0c933e700105f460290ab5491ad1c26c73e024

Authored by Antonio Terceiro
1 parent 07e70955

gitlab: use on worker per CPU

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
cookbooks/gitlab/files/unicorn.rb
... ... @@ -16,7 +16,7 @@ ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab"
16 16 # Read about unicorn workers here:
17 17 # http://doc.gitlab.com/ee/install/requirements.html#unicorn-workers
18 18 #
19   -worker_processes 2
  19 +worker_processes `nproc`.to_i
20 20  
21 21 # Since Unicorn is never exposed to outside clients, it does not need to
22 22 # run on the standard HTTP port (80), there is no reason to start Unicorn
... ...