drone-ci-configs/drone.slice
2022-03-20 21:03:24 +01:00

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