diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-01-20 13:52:01 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-01-20 13:52:01 +0300 |
commit | 89c65a3789ab51d58633841120c33f570064f242 (patch) | |
tree | c3aca7315414bde4c36745aaaf69abd5a85aba0a | |
parent | 21fab4f41317fe3c7acc7f9395cb1222e4a41074 (diff) |
Increase Unicorn memory limits to 300-350
Using this limit on GitLab.com it appears we're able to reduce response
timings by about 620 milliseconds compared to the previous limit.
See gitlab-org/gitlab-ce!2421 for more information.
-rw-r--r-- | config.ru | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config.ru b/config.ru index 1b258e0bd5e..065ce59932f 100644 --- a/config.ru +++ b/config.ru @@ -7,8 +7,8 @@ if defined?(Unicorn) # Unicorn self-process killer require 'unicorn/worker_killer' - min = (ENV['GITLAB_UNICORN_MEMORY_MIN'] || 200 * 1 << 20).to_i - max = (ENV['GITLAB_UNICORN_MEMORY_MAX'] || 250 * 1 << 20).to_i + min = (ENV['GITLAB_UNICORN_MEMORY_MIN'] || 300 * 1 << 20).to_i + max = (ENV['GITLAB_UNICORN_MEMORY_MAX'] || 350 * 1 << 20).to_i # Max memory size (RSS) per worker use Unicorn::WorkerKiller::Oom, min, max |