Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2015-03-14 03:14:34 +0300
committerMarin Jankovski <maxlazio@gmail.com>2015-03-14 03:14:34 +0300
commit141168ad3cf0ad2f79f0a5c64c29e7f95c2064b5 (patch)
tree7ab9bb030a382e2f49f4e19d55abf7f0c7d69511
parentafb694886eccc1bad6abd900bede8699f2a10dff (diff)
Change default number of unicorn workers to three.
-rw-r--r--config/unicorn.rb.example2
-rw-r--r--doc/install/requirements.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/config/unicorn.rb.example b/config/unicorn.rb.example
index 29253b71f49..3aee718097f 100644
--- a/config/unicorn.rb.example
+++ b/config/unicorn.rb.example
@@ -16,7 +16,7 @@
# Read about unicorn workers here:
# http://doc.gitlab.com/ee/install/requirements.html#unicorn-workers
#
-worker_processes 2
+worker_processes 3
# 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
diff --git a/doc/install/requirements.md b/doc/install/requirements.md
index 5bdb9caa2bf..65ddb3e3cfb 100644
--- a/doc/install/requirements.md
+++ b/doc/install/requirements.md
@@ -80,7 +80,7 @@ It's possible to increase the amount of unicorn workers and tis will usually hel
For most instances we recommend using: CPU cores + 1 = unicorn workers.
So for a machine with 2 cores, 3 unicorn workers is ideal.
-For all machines that have 1GB and up we recommend a minimum of two unicorn workers.
+For all machines that have 1GB and up we recommend a minimum of three unicorn workers.
If you have a 512MB machine with a magnetic (non-SSD) swap drive we recommend to configure only one Unicorn worker to prevent excessive swapping.
With one Unicorn worker only git over ssh access will work because the git over HTTP access requires two running workers (one worker to receive the user request and one worker for the authorization check).
If you have a 512MB machine with a SSD drive you can use two Unicorn workers, this will allow HTTP access although it will be slow due to swapping.