Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
modules
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
puppet
modules
Commits
ae973020
Commit
ae973020
authored
May 25, 2020
by
Cool Fire
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some ad-hoc cgroups we can throw a one-off process into if needed
parent
889aa0e6
Pipeline
#2321
passed with stages
in 4 minutes and 59 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
profile/manifests/lydia.pp
profile/manifests/lydia.pp
+1
-0
site_cgroups/manifests/adhoc.pp
site_cgroups/manifests/adhoc.pp
+14
-0
site_cgroups/templates/adhoc.erb
site_cgroups/templates/adhoc.erb
+8
-0
No files found.
profile/manifests/lydia.pp
View file @
ae973020
...
...
@@ -36,6 +36,7 @@ class profile::lydia (
include
::site_apache::php
include
::site_apparmor
include
::site_cgroups
include
::site_cgroups::adhoc
include
::site_dovecot
include
::site_imagemagick
include
::site_kernelcare
...
...
site_cgroups/manifests/adhoc.pp
0 → 100644
View file @
ae973020
# Class: site_cgroups::adhoc
#
# Create a few special cgroups that we can
# assign a one-off process to when needed
class
site_cgroups::adhoc
(
Array
[
Integer
]
$cpucaps
=
[
1
,
5
,
10
,
25
,
50
],
)
{
concat::fragment
{
'cgroups_adhoc_cpucaps'
:
target
=>
'/etc/cgconfig.conf'
,
content
=>
template
(
'site_cgroups/adhoc.erb'
),
order
=>
'04'
,
}
}
site_cgroups/templates/adhoc.erb
0 → 100644
View file @
ae973020
<%
@cpucaps
.
each
do
|
cap
|
%>
group adhoc_cpu_
<%=
cap
%>
{
cpu {
cpu.cfs_period_us = 1000000;
cpu.cfs_quota_us =
<%=
cap
*
10000
%>
;
}
}
<%
end
%>
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