Commit cb376e373096e477c57e3b36da4619f089a61c5f
1 parent
a7978199
Exists in
performance
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 | ... | ... |