Update Unicorn Worker recommendation

Update the Unicorn worker documentation based on the new scaling
formula.

https://gitlab.com/gitlab-org/omnibus-gitlab/issues/4535
This commit is contained in:
Ben Kochie 2019-08-02 09:58:08 +02:00
parent 407de0417d
commit 0f91eadc87
No known key found for this signature in database
GPG Key ID: 7D88366AC0FCE38A
1 changed files with 2 additions and 2 deletions

View File

@ -146,8 +146,8 @@ CREATE EXTENSION postgres_fdw;
## 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.
For most instances we recommend using: (CPU cores * 1.5) + 1 = unicorn workers.
For example a node with 4 cores would have 7 unicorn workers.
For all machines that have 2GB and up we recommend a minimum of three unicorn workers.
If you have a 1GB machine we recommend to configure only two Unicorn workers to prevent excessive swapping.