Skip to content

Commit

Permalink
Increase Unicorn memory limits to 300-350
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Yorick Peterse committed Jan 20, 2016
1 parent 21fab4f commit 89c65a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89c65a3

Please sign in to comment.