Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Łukasz Nowak
slapos.package
Commits
7ab3e699
Commit
7ab3e699
authored
Oct 12, 2020
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Plain Diff
vifib-server: Increase memlock from default 64K to 64M
See merge request
nexedi/slapos.package!130
parents
aa022864
d8db751f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
playbook/roles/vifib-server/files/etc_systemd_system_cron_service_d_override.conf
...ver/files/etc_systemd_system_cron_service_d_override.conf
+3
-0
playbook/roles/vifib-server/files/slapos_limit.conf
playbook/roles/vifib-server/files/slapos_limit.conf
+17
-0
playbook/roles/vifib-server/tasks/main.yml
playbook/roles/vifib-server/tasks/main.yml
+1
-1
No files found.
playbook/roles/vifib-server/files/etc_systemd_system_cron_service_d_override.conf
View file @
7ab3e699
...
...
@@ -3,3 +3,6 @@
# (on a normal slapos node server, cron starts slapos, which starts supervisord,
# which then manage all deployed instances)
TasksMax
=
infinity
# NOTE the other limits for subprocesses that cron spawns are defined in
# /etc/security/limits.d/slapos.conf
playbook/roles/vifib-server/files/slapos_limit.conf
View file @
7ab3e699
# Limits for processes run under SlapOS.
#
# slapos is started by cron which runs as root user and applies pam_limits.so
# to spawned processes (see /etc/pam.d/cron for details).
#
# For some limits (e.g. memlock), if they are not explicitly defined,
# pam_limits.so resets them to rather strict default. This means cron/slapos
# limits cannot be adjusted in /etc/systemd/system/cron.service.d/override.conf
#
# NOTE "*", or any other group name, does not cover root user - limits for root
# has to be explicitly defined.
root
hard
nofile
1048576
# default memlock is 64K originating from ages when machines had ~ 256M of RAM total or less.
# This days VIFIB machines have at least 16GB of RAM so 64M should not be a big expense.
# Example use-case: wendelin.core 2 tests need to be able to mlock 64M.
root
hard
memlock
65536
playbook/roles/vifib-server/tasks/main.yml
View file @
7ab3e699
...
...
@@ -42,7 +42,7 @@
-
file
:
state=directory path="/etc/systemd/system/cron.service.d/"
when
:
systemd_version.stdout | int >
228
-
name
:
Increase
the maximum of subprocesse
s for cron
-
name
:
Increase
limit
s for cron
copy
:
src="etc_systemd_system_cron_service_d_override.conf" dest="/etc/systemd/system/cron.service.d/override.conf" mode=0644 owner=root group=root
when
:
systemd_version.stdout | int >
228
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment