Apply cgroups and ulimit to precise8.
To test the cgroup and ulimit changes in a controlled manner apply the two limiting tools to precise8. One this host the jenkins user will only be able to start 256 processes and will be limited to using 90% of the hosts physical memory. Change-Id: Id57c2ca9bbb40366b2827c4b07236aa33cc10bd7
This commit is contained in:
parent
1467f69191
commit
b21e184356
@ -527,6 +527,28 @@ node /^ci-backup-.*\.openstack\.org$/ {
|
||||
#
|
||||
# Jenkins slaves:
|
||||
#
|
||||
|
||||
# Test cgroups and ulimits on precise8
|
||||
node 'precise8.slave.openstack.org' {
|
||||
include openstack_cron
|
||||
include openstack_jenkins_slave
|
||||
|
||||
package { "tox":
|
||||
ensure => latest, # okay to use latest for pip
|
||||
provider => pip,
|
||||
require => Package[python-pip],
|
||||
}
|
||||
|
||||
include ulimit
|
||||
ulimit::conf { 'limit_jenkins_procs':
|
||||
limit_domain => 'jenkins',
|
||||
limit_type => 'hard',
|
||||
limit_item => 'nproc',
|
||||
limit_value => '256'
|
||||
}
|
||||
include jenkins_slave::cgroups
|
||||
}
|
||||
|
||||
node /^.*\.slave\.openstack\.org$/ {
|
||||
include openstack_cron
|
||||
include openstack_jenkins_slave
|
||||
|
Loading…
x
Reference in New Issue
Block a user