Commit f4218f27 authored by DJ Mountney's avatar DJ Mountney

Increase the memory limits used in the unicorn killer

These limits were updated in our docs, and in omnibus some time ago. But
the defaults in the source-install were missed.
parent be0ce05c
Pipeline #19353704 passed with stages
in 55 minutes and 45 seconds
---
title: Increase the memory limits used in the unicorn killer
merge_request: 17948
author:
type: other
......@@ -7,8 +7,8 @@ if defined?(Unicorn)
# Unicorn self-process killer
require 'unicorn/worker_killer'
min = (ENV['GITLAB_UNICORN_MEMORY_MIN'] || 300 * 1 << 20).to_i
max = (ENV['GITLAB_UNICORN_MEMORY_MAX'] || 350 * 1 << 20).to_i
min = (ENV['GITLAB_UNICORN_MEMORY_MIN'] || 400 * 1 << 20).to_i
max = (ENV['GITLAB_UNICORN_MEMORY_MAX'] || 650 * 1 << 20).to_i
# Max memory size (RSS) per worker
use Unicorn::WorkerKiller::Oom, min, max
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment