diff --git a/packaging/systemd/microshift.service b/packaging/systemd/microshift.service index 5f783bd0a58..53ea8652ef1 100644 --- a/packaging/systemd/microshift.service +++ b/packaging/systemd/microshift.service @@ -9,6 +9,15 @@ ExecStart=microshift run Restart=always User=root Type=notify +Delegate=yes +CPUAccounting=yes +BlockIOAccounting=yes +MemoryAccounting=yes +# Having non-zero Limit*s causes performance problems due to accounting overhead +# in the kernel. We recommend using cgroups to do container-local accounting. +LimitNOFILE=1048576 +LimitNPROC=infinity +LimitCORE=infinity [Install] WantedBy=multi-user.target