initial resource limits, just guessed, might cause some issues later

This commit is contained in:
zenfyr 2026-01-11 15:38:46 +07:00
commit 012b5ca858
Signed by: melontini
SSH key fingerprint: SHA256:TtcIcnTnoAB5mqHofsaOxIgiMzfVBxej1AXT7DQdrTE
33 changed files with 91 additions and 0 deletions

View file

@ -19,6 +19,8 @@ HealthStartPeriod=10s
Notify=healthy
# Security
NoNewPrivileges=true
# Resources
Ulimit=memlock=-1
[Service]
Restart=always

View file

@ -12,6 +12,9 @@ Network=mastodon.network
Network=postgresql.network
# Security
NoNewPrivileges=true
# Resources
Memory=512m
PodmanArgs=--memory-reservation=128m --cpus=0.1 --cpu-shares=512
[Service]
Restart=always

View file

@ -19,6 +19,8 @@ HealthStartPeriod=1m
Notify=healthy
# Security
NoNewPrivileges=true
# Resources
PodmanArgs=--cpu-shares=2048
[Service]
Restart=always

View file

@ -22,6 +22,8 @@ HealthStartPeriod=1m
Notify=healthy
# Security
NoNewPrivileges=true
# Resources
PodmanArgs=--cpu-shares=2048
[Service]
Restart=always