add coredns.slice
This commit is contained in:
parent
c40f918804
commit
09a2e7cd19
1
.gitattributes
vendored
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
|
||||||
|
16
etc/systemd/system/coredns.slice
Normal file
16
etc/systemd/system/coredns.slice
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user