mermet: fix MemoryHigh/MemoryMax confusion
authorJulien Moutinho <julm+sourcephile-nix@sourcephile.fr>
Sun, 3 Mar 2024 23:30:57 +0000 (00:30 +0100)
committerJulien Moutinho <julm+sourcephile-nix@sourcephile.fr>
Tue, 5 Mar 2024 23:52:13 +0000 (00:52 +0100)
hosts/mermet/calibre.nix
hosts/mermet/pleroma.nix
hosts/mermet/postgresql.nix

index 91d7a56a70bff58e37e8a995636873c742407193..a0407137730ba036634f6b6f5abdb0151b33b95b 100644 (file)
@@ -44,8 +44,8 @@ in
         calibre.auth.userDb
       ] ++ calibre.libraries));
       MemoryAccounting = true;
-      MemoryMax = "300M";
-      MemoryHigh = "400M";
+      MemoryHigh = "350M";
+      MemoryMax = "450M";
       Restart = mkForce "on-failure";
       RestartSec = "60s";
     };
index 320e316fc3b0de0fc603f6fc8a7187e24ab429b7..3293106f3f313002fc35b2a4ba5675599367800d 100644 (file)
@@ -216,8 +216,8 @@ in
         Restart = "on-failure";
         RestartSec = "10s";
         MemoryAccounting = true;
-        MemoryMax = "500M";
-        MemoryHigh = "600M";
+        MemoryHigh = "500M";
+        MemoryMax = "600M";
         # For sendmail
         NoNewPrivileges = lib.mkForce false;
       };
index d41153bff397f61f27ba7f9ce1e741ba4c3be4a6..2522fb8ffd615910997f3916353ab095e916333c 100644 (file)
@@ -110,8 +110,8 @@ in
   systemd.services.postgresql = {
     serviceConfig = {
       MemoryAccounting = true;
-      MemoryMax = "500M";
-      MemoryHigh = "600M";
+      MemoryHigh = "500M";
+      MemoryMax = "600M";
     };
     # DOC: https://wiki.postgresql.org/wiki/Shared_Database_Hosting
     postStart = ''