mirror of
https://codeberg.org/polyteknisk-radiogruppe/the_prg_server_configuration.git
synced 2026-06-13 18:28:55 +02:00
Try to triage Valkey
This commit is contained in:
parent
c5f8bce4b7
commit
8d094021e6
1 changed files with 7 additions and 2 deletions
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue