Overcommit for all redis'
This commit is contained in:
parent
d9f134bdaa
commit
c38581cb69
|
@ -18,8 +18,7 @@
|
|||
boot = {
|
||||
tmp.cleanOnBoot = true;
|
||||
kernel.sysctl = {
|
||||
# reset 60 seconds after a kernel panic
|
||||
"kernel.panic" = 60;
|
||||
"kernel.panic" = 60; # reset 60 seconds after a kernel panic
|
||||
"net.ipv4.tcp_congestion_control" = "bbr";
|
||||
};
|
||||
# recommend to turn off, only on by default for backwards compatibility
|
||||
|
@ -243,6 +242,8 @@
|
|||
stopServices = lib.optional config.services.nginx.enable "nginx"
|
||||
++ lib.optional config.c3d2.hq.statistics.enable "collectd";
|
||||
};
|
||||
|
||||
redis.vmOverCommit = true;
|
||||
};
|
||||
|
||||
security.acme = {
|
||||
|
|
|
@ -26,9 +26,6 @@
|
|||
Storage=volatile
|
||||
'';
|
||||
|
||||
# Required by redis
|
||||
boot.kernel.sysctl."vm.overcommit_memory" = 1;
|
||||
|
||||
sops = {
|
||||
defaultSopsFile = ./secrets.yaml;
|
||||
secrets = {
|
||||
|
|
Loading…
Reference in New Issue