Set swappiness to 60 so that we do swap instead of letting the machine crawl to a stop
Graham Christensen committed
Dec 18, 2021 at 18:13 UTC
891136d40a11aadf09c7c864f9216ff386f2b396
1 file changed
+2
-2
bastion/configuration.nix
+2
-2
@@ -70,8 +70,8 @@ in
70
# work around releases taking too much memory
71
swapDevices = [{ device = "/scratch/swapfile"; size = 32 * 1024; }];
72
73
- # avoid swap as much as possible
74
- boot.kernel.sysctl."vm.swappiness" = lib.mkDefault 0;
73
+ # Enable swap so mirroring the channels doesn't make AWS think this machine is dead
74
+ boot.kernel.sysctl."vm.swappiness" = lib.mkDefault 60;
75
76
boot.loader.grub.device = lib.mkForce "/dev/disk/by-id/nvme-Amazon_Elastic_Block_Store_vol0631f5232321abda4";
77