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.
wip/yesman
talyz 3 years ago
parent 306fc0648b
commit 6389170b39
No known key found for this signature in database
GPG Key ID: 2DED2151F4671A2B
  1. 1
      nixos/modules/services/misc/gitlab.nix

@ -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 {

Loading…
Cancel
Save