Overcommit for all redis'

This commit is contained in:
Sandro - 2023-10-16 01:27:04 +02:00
parent d9f134bdaa
commit c38581cb69
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 3 additions and 5 deletions

View File

@ -18,8 +18,7 @@
boot = { boot = {
tmp.cleanOnBoot = true; tmp.cleanOnBoot = true;
kernel.sysctl = { kernel.sysctl = {
# reset 60 seconds after a kernel panic "kernel.panic" = 60; # reset 60 seconds after a kernel panic
"kernel.panic" = 60;
"net.ipv4.tcp_congestion_control" = "bbr"; "net.ipv4.tcp_congestion_control" = "bbr";
}; };
# recommend to turn off, only on by default for backwards compatibility # recommend to turn off, only on by default for backwards compatibility
@ -243,6 +242,8 @@
stopServices = lib.optional config.services.nginx.enable "nginx" stopServices = lib.optional config.services.nginx.enable "nginx"
++ lib.optional config.c3d2.hq.statistics.enable "collectd"; ++ lib.optional config.c3d2.hq.statistics.enable "collectd";
}; };
redis.vmOverCommit = true;
}; };
security.acme = { security.acme = {

View File

@ -26,9 +26,6 @@
Storage=volatile Storage=volatile
''; '';
# Required by redis
boot.kernel.sysctl."vm.overcommit_memory" = 1;
sops = { sops = {
defaultSopsFile = ./secrets.yaml; defaultSopsFile = ./secrets.yaml;
secrets = { secrets = {