Skip to content
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

Add MemoryLimit to limits template #23

Merged
merged 1 commit into from
Mar 22, 2017
Merged

Conversation

pkilambi
Copy link
Contributor

@pkilambi pkilambi commented Mar 8, 2017

MemoryLimit is required to restrict memory on a
systemd service effectvely. Its a more powerful
and working replacement to LimitRSS= which is
not implemented in linux. See man page[1] for
more details.

[1] http://www.dsm.fordham.edu/cgi-bin/man-cgi.pl?topic=systemd.exec&ampsect=5

@EmilienM
Copy link

@raphink @mcanevet hey, if you can review it, thanks!

@@ -17,7 +17,8 @@
'LimitMSGQUEUE',
'LimitNICE',
'LimitRTPRIO',
'LimitRTTIME'
'LimitRTTIME',
'MemoryLimit'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd add a trailing comma here

MemoryLimit is required to restrict memory on a
systemd service effectvely. Its a more powerful
and working replacement to LimitRSS= which is
not implemented in linux. See man page[1] for
more details.

[1] http://www.dsm.fordham.edu/cgi-bin/man-cgi.pl?topic=systemd.exec&ampsect=5
Copy link
Member

@bastelfreak bastelfreak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

verified locally that it is working

@mcanevet mcanevet merged commit 70c418c into voxpupuli:master Mar 22, 2017
openstack-gerrit pushed a commit to openstack-archive/puppet-tripleo that referenced this pull request Apr 3, 2017
Currently, mongodb has no limits on how much memory
it can consume. This enforces restriction so mongodb
service limits through systemd.

The puppet-systemd module has support for limits. The
MemoryLimit support is added in the follwoing pull
request voxpupuli/puppet-systemd#23

Closes-bug: #1656558

Change-Id: Ie9391aa39532507c5de8dd668a70d5b66e17c891
openstack-gerrit pushed a commit to openstack-archive/puppet-tripleo that referenced this pull request Apr 17, 2017
Currently, mongodb has no limits on how much memory
it can consume. This enforces restriction so mongodb
service limits through systemd.

The puppet-systemd module has support for limits. The
MemoryLimit support is added in the follwoing pull
request voxpupuli/puppet-systemd#23

Closes-bug: #1656558

Change-Id: Ie9391aa39532507c5de8dd668a70d5b66e17c891
(cherry picked from commit 3aa86a4)
@raphink raphink added the enhancement New feature or request label Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants