summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKerstin Humm <kerstin@erictapen.name>2022-03-26 17:35:32 +0100
committerKerstin <kerstin@erictapen.name>2022-03-31 18:32:17 +0200
commite0e26f371fbeff59c8afd98b52b09b7b6df1948a (patch)
tree28033f74828c3695d5d9a035c5514f65858d19a6
parentmastodon: 3.4.6 -> 3.5.0 (diff)
downloadnixpkgs-e0e26f371fbeff59c8afd98b52b09b7b6df1948a.tar.gz
nixos/mastodon: preload libjemalloc.so
Co-authored-by: Izorkin <izorkin@elven.pw> (cherry picked from commit 192beb869a7b33914a3a432b3db1d7a196d0efe8)
-rw-r--r--nixos/modules/services/web-apps/mastodon.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/web-apps/mastodon.nix b/nixos/modules/services/web-apps/mastodon.nix
index 1e3c7e53c175..741aa8db9abf 100644
--- a/nixos/modules/services/web-apps/mastodon.nix
+++ b/nixos/modules/services/web-apps/mastodon.nix
@@ -9,6 +9,8 @@ let
RAILS_ENV = "production";
NODE_ENV = "production";
+ LD_PRELOAD = "${pkgs.jemalloc}/lib/libjemalloc.so";
+
# mastodon-web concurrency.
WEB_CONCURRENCY = toString cfg.webProcesses;
MAX_THREADS = toString cfg.webThreads;