This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

2configs/services/pad: add memory limit and node heap cap

HedgeDoc was OOMing at 6GB due to a Node.js memory leak.
- MemoryMax=1G: systemd kills and restarts if it exceeds 1GB
- NODE_OPTIONS --max-old-space-size=512: limits V8 heap
- Restart=always: ensures it comes back after OOM kills

+3
+3
2configs/services/pad/module.nix
··· 53 53 systemd.services.hedgedoc.serviceConfig.SystemCallFilter = [ 54 54 "fchown" 55 55 ]; 56 + systemd.services.hedgedoc.serviceConfig.MemoryMax = "1G"; 57 + systemd.services.hedgedoc.serviceConfig.Restart = "always"; 58 + systemd.services.hedgedoc.environment.NODE_OPTIONS = "--max-old-space-size=512"; 56 59 57 60 systemd.services.hedgedoc.serviceConfig.EnvironmentFile = [ 58 61 config.clan.core.vars.generators.hedgedoc.files."hedgedoc.env".path