diff options
author | Kerstin Humm <kerstin@erictapen.name> | 2022-03-26 17:35:32 +0100 |
---|---|---|
committer | Kerstin <kerstin@erictapen.name> | 2022-03-31 13:17:11 +0200 |
commit | 23a1971a4ecda43c9a16ddf798ecc957fc9bfc38 (patch) | |
tree | ffc8feb8c2176c34f9b7c8cb8832560ee22ae6b6 /nixos/modules/services/web-apps/mastodon.nix | |
parent | 513f7beb553142dfdf96df3e3f3fa8bcc163af36 (diff) | |
download | nixpkgs-23a1971a4ecda43c9a16ddf798ecc957fc9bfc38.tar nixpkgs-23a1971a4ecda43c9a16ddf798ecc957fc9bfc38.tar.gz nixpkgs-23a1971a4ecda43c9a16ddf798ecc957fc9bfc38.tar.bz2 nixpkgs-23a1971a4ecda43c9a16ddf798ecc957fc9bfc38.tar.lz nixpkgs-23a1971a4ecda43c9a16ddf798ecc957fc9bfc38.tar.xz nixpkgs-23a1971a4ecda43c9a16ddf798ecc957fc9bfc38.tar.zst nixpkgs-23a1971a4ecda43c9a16ddf798ecc957fc9bfc38.zip |
nixos/mastodon: preload libjemalloc.so
Co-authored-by: Izorkin <izorkin@elven.pw>
Diffstat (limited to 'nixos/modules/services/web-apps/mastodon.nix')
-rw-r--r-- | nixos/modules/services/web-apps/mastodon.nix | 2 |
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 8208c85bfd7..fa5497d6606 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; |