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 <[email protected]>
  • Loading branch information
oglok committed Aug 17, 2022
1 parent 7643bcd commit 7e90ef4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packaging/systemd/microshift.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ ExecStart=microshift run
Restart=always
User=root
Type=notify
Delegate=yes
CPUAccounting=yes
BlockIOAccounting=yes
MemoryAccounting=yes
TasksAccounting=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=infinity
LimitNPROC=infinity
LimitCORE=infinity

[Install]
WantedBy=multi-user.target

0 comments on commit 7e90ef4

Please sign in to comment.