summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Bodenmiller <bbodenmiller@hotmail.com>2014-09-12 02:22:43 -0700
committerBen Bodenmiller <bbodenmiller@hotmail.com>2014-09-12 02:22:43 -0700
commitee6ec5bd6dfe717cb967b9bb3952ce9c6d895098 (patch)
tree1672ea3dd273d80e09c86bdc2ff2538bd00af86f
parent30ea264b3b8207ae279d37e5162f0b934f22dcea (diff)
downloadgitlab-ce-ee6ec5bd6dfe717cb967b9bb3952ce9c6d895098.tar.gz
set the number of workers to # of cores
-rw-r--r--doc/install/installation.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/install/installation.md b/doc/install/installation.md
index 837dcd62a91..7a3996a8974 100644
--- a/doc/install/installation.md
+++ b/doc/install/installation.md
@@ -183,8 +183,12 @@ We recommend using a PostgreSQL database. For MySQL check [MySQL setup guide](da
# Copy the example Unicorn config
sudo -u git -H cp config/unicorn.rb.example config/unicorn.rb
+ # Find number of cores
+ nproc
+
# Enable cluster mode if you expect to have a high load instance
# Ex. change amount of workers to 3 for 2GB RAM server
+ # Set the number of workers to at least the number of cores
sudo -u git -H editor config/unicorn.rb
# Copy the example Rack attack config