Commit 141168ad authored by Marin Jankovski's avatar Marin Jankovski

Change default number of unicorn workers to three.

parent afb69488
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
# Read about unicorn workers here: # Read about unicorn workers here:
# http://doc.gitlab.com/ee/install/requirements.html#unicorn-workers # 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 # 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 # run on the standard HTTP port (80), there is no reason to start Unicorn
......
...@@ -80,7 +80,7 @@ It's possible to increase the amount of unicorn workers and tis will usually hel ...@@ -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. For most instances we recommend using: CPU cores + 1 = unicorn workers.
So for a machine with 2 cores, 3 unicorn workers is ideal. 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. 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). 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. 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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment