Commit 0324b873 authored by Stan Hu's avatar Stan Hu

Raise Puma Worker Killer RAM limits

On a 2-worker node, the previous limits were set to:

550 + (2 * 850) = 2250 MB

However, on an Omnibus 13.5.x install, the baseline memory usage appears
to be 800 MB for both the main and worker processes for a total of 2400
MB. Every request is thus over the limit.

On GitLab.com, `puma_per_worker_max_memory_mb` was set to 1342 MB
because we were observing frequent out of memory kills, so we use the
defaults discussed in
https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/8760 and
set in
https://ops.gitlab.net/gitlab-cookbooks/chef-repo/-/merge_requests/2352.
We use a slightly lower number since not all GitLab installations will
have as much memory.

Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/267499
parent dcc29126
---
title: Raise Puma Worker Killer RAM limits
merge_request: 45116
author:
type: changed
......@@ -5,8 +5,8 @@ module Gitlab
class PumaWorkerKillerInitializer
def self.start(
puma_options,
puma_per_worker_max_memory_mb: 850,
puma_master_max_memory_mb: 550,
puma_per_worker_max_memory_mb: 1024,
puma_master_max_memory_mb: 800,
additional_puma_dev_max_memory_mb: 200
)
require 'puma_worker_killer'
......
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