-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USHIFT-197: Enable resource accounting in MicroShift systemd service #868
Conversation
With this PR, local testing showed no error message:
With these options in the systemd service file, we enable accounting as you can see in the status of the service itself:
|
If required, I could add a new target to the Makefile so developers can run MicroShift from systemd in an easier way as @mrunalp suggested. |
packaging/systemd/microshift.service
Outdated
# in the kernel. We recommend using cgroups to do container-local accounting. | ||
LimitNOFILE=infinity | ||
LimitNPROC=infinity | ||
LimitCORE=infinity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we resetting these 3 specific limits? How do we know we should not bump more to avoid the mentioned performance problems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, can we add a link in the comment that describes the performance problem?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I follow @ggiguash , are you talking about the performance issues caused by a very high value in LimitNOFILE? I could reduce it to 1048576 as it seems to be the standard for other project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LimitNOFILE = 1048576
seems to be the standard number for most of the projects that deal with containers from a systemd service.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we update the comment to something more concrete? I think it's important to note what part of the kernel is not performing well.
Having higher limit values cause file system performance problems due to accounting overhead in the kernel.
We recommend using cgroup to do container-local accounting.
Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
@oglok: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ggiguash, oglok The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1 similar comment
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ggiguash, oglok The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Ricardo Noriega rnoriega@redhat.com
Closes #USHIFT-197