17 lines
282 B
SYSTEMD
17 lines
282 B
SYSTEMD
# /etc/systemd/system/drone.slice
|
|
[Unit]
|
|
Description=Slice that limits drone.service resources
|
|
Before=slices.target
|
|
After=docker.service docker.slice
|
|
|
|
[Slice]
|
|
CPUAccounting=yes
|
|
CPUQuota=315%
|
|
|
|
MemoryAccounting=yes
|
|
MemoryHigh=4.1G
|
|
MemoryMax=4.2G
|
|
MemorySwapMax=200M
|
|
|
|
# vim: ft=systemd
|