add coredns.slice

This commit is contained in:
surtur 2022-10-03 13:44:42 +02:00
parent c40f918804
commit 09a2e7cd19
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI
2 changed files with 17 additions and 0 deletions

1
.gitattributes vendored

@ -1,3 +1,4 @@
*.service linguist-language=systemd *.service linguist-language=systemd
*.slice linguist-language=systemd
*.timer linguist-language=systemd *.timer linguist-language=systemd
*.path linguist-language=systemd *.path linguist-language=systemd

@ -0,0 +1,16 @@
[Unit]
Description=Slice that limits coredns.service
Before=slices.target
; Wants=network.target
[Slice]
; CPUAccounting=yes
; CPUQuota=5%
MemoryAccounting=yes
MemoryHigh=120M
MemoryMax=128M
MemorySwapMax=64M
[Install]
WantedBy=multi-user.target