Try to triage Valkey

This commit is contained in:
Root User 2026-03-21 12:50:57 +01:00
parent c5f8bce4b7
commit 8d094021e6
Signed by: root
GPG key ID: 087F0A95E5766D72

View file

@ -129,7 +129,7 @@ in {
Restart = "always";
User = "root";
RuntimeDirectory = "valkey_6379"; # places runtime dir under /run
# Keep logs in a file (configured below) but also keep unit re-start behavior
Type = "notify"; # valkey can notify systemd when ready if supervised systemd is enabled in config
};
};
@ -549,7 +549,7 @@ in {
# The default is "no". To run under upstart/systemd, you can simply uncomment
# the line below:
#
# supervised auto
supervised systemd
# If a pid file is specified, the server writes it where specified at startup
# and removes it at exit.
@ -2826,6 +2826,11 @@ in {
"f /var/log/valkey_6379.log 0644 root root - -"
];
# Ensure kernel allows memory overcommit so Valkey / jemalloc background saves won't fail.
boot.sysctl = {
"vm.overcommit_memory" = 1;
};
system.stateVersion = "25.11";
};
}