Skip to content

Commit

Permalink
Enable resource accounting in MicroShift systemd service
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
  • Loading branch information
oglok committed Aug 18, 2022
1 parent 7643bcd commit 7c052b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packaging/systemd/microshift.service
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7c052b6

Please sign in to comment.