Skip to content

Commit 466e092

Browse files
committed
Autorestart metadata-server service for mem leak
1 parent c41264a commit 466e092

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

roles/metadata.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ in {
4141

4242
# Not yet available as an attribute for the Unit section in nixpkgs 20.09
4343
StartLimitBurst = 3;
44+
45+
# Restart every 12 hours until a memory leak is addressed
46+
RuntimeMaxSec = 12 * 3600;
4447
};
4548
systemd.services.metadata-webhook.serviceConfig = {
4649
Restart = "always";

0 commit comments

Comments
 (0)