gitlab/unicorn: Automatically load all available CPUs by default
authorKirill Smelkov <kirr@nexedi.com>
Thu, 7 Jan 2016 18:44:10 +0000 (21:44 +0300)
committerKirill Smelkov <kirr@nexedi.com>
Sun, 17 Jan 2016 21:39:29 +0000 (00:39 +0300)
commit5dc6321cdfe66e7ee0f232c1a25d960960913e2e
tree47eb2dc82ade4d892a60252fc3b3c8be01ab6557
parentb55d823d40f805895e7f566c8eac360de1a12b42
gitlab/unicorn: Automatically load all available CPUs by default

Automatically configure unicorn to spawn as much worker processes as
there are CPUs on the system by default.

GitLab omnibus pre-hardcodes this value default to 2 (which we copied)
and then also tweaks it this way in active code

    https://gitlab.com/gitlab-org/omnibus-gitlab/blob/8eda0933/files/gitlab-cookbooks/gitlab/attributes/default.rb#L230

which we also do here.

/cc @kazuhiko, @jerome
software/gitlab/instance-gitlab.cfg.in
software/gitlab/instance.cfg.in