Skip to content
Snippets Groups Projects
Commit 89c65a37 authored by Yorick Peterse's avatar Yorick Peterse
Browse files

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.
parent 21fab4f4
Branches
Tags
1 merge request!2513Use ENV variables for Unicorn worker killer & increase default limits
Pipeline #
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment