nixos/gitlab: Set MALLOC_ARENA_MAX to "2"

This should reduce memory fragmentation drastically and is recommended
by both the Puma and the Sidekiq author. It's also the default value
for Ruby deployments on Heroku.
This commit is contained in:
talyz 2021-04-08 19:03:44 +02:00
parent 306fc0648b
commit 6389170b39
No known key found for this signature in database
GPG key ID: 2DED2151F4671A2B

View file

@ -155,6 +155,7 @@ let
GITLAB_REDIS_CONFIG_FILE = pkgs.writeText "redis.yml" (builtins.toJSON redisConfig);
prometheus_multiproc_dir = "/run/gitlab";
RAILS_ENV = "production";
MALLOC_ARENA_MAX = "2";
};
gitlab-rake = pkgs.stdenv.mkDerivation {