diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-19 06:08:47 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-19 06:08:47 +0300 |
commit | d36aa82340b8bdd23296de41b9c2a49765d92fcd (patch) | |
tree | 5548b7030a89b6d327292a40b448c6b2a40a750a /doc/administration | |
parent | 60f63d15794e62c4bac9756445f618cd9acb8654 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/administration')
-rw-r--r-- | doc/administration/operations/unicorn.md | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/doc/administration/operations/unicorn.md b/doc/administration/operations/unicorn.md index edd580d10c7..561cd7ac1ce 100644 --- a/doc/administration/operations/unicorn.md +++ b/doc/administration/operations/unicorn.md @@ -64,13 +64,19 @@ between requests_, so no user requests are affected. You can set the minimum and maximum memory threshold (in bytes) for the Unicorn worker killer by setting the following values `/etc/gitlab/gitlab.rb`: -```ruby -unicorn['worker_memory_limit_min'] = "1024 * 1 << 20" -unicorn['worker_memory_limit_max'] = "1280 * 1 << 20" -``` - -NOTE: **Note:** -These values apply to GitLab 12.7.0 or newer versions. For older GitLab versions please consult [previous worker memory limits](https://gitlab.com/gitlab-org/omnibus-gitlab/-/blob/12.6.0+ee.0/files/gitlab-cookbooks/gitlab/attributes/default.rb#L422-423). +- For GitLab **12.7** and newer: + + ```ruby + unicorn['worker_memory_limit_min'] = "1024 * 1 << 20" + unicorn['worker_memory_limit_max'] = "1280 * 1 << 20" + ``` + +- For GitLab **12.6** and older: + + ```ruby + unicorn['worker_memory_limit_min'] = "400 * 1 << 20" + unicorn['worker_memory_limit_max'] = "650 * 1 << 20" + ``` Otherwise, you can set the `GITLAB_UNICORN_MEMORY_MIN` and `GITLAB_UNICORN_MEMORY_MAX` [environment variables](../environment_variables.md). |