From b21e184356384e5aff35492a6e1e069684b864d0 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Tue, 3 Jul 2012 14:28:41 -0700 Subject: [PATCH] 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 --- manifests/site.pp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/manifests/site.pp b/manifests/site.pp index 87b40c2d28..2d2138b6c4 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -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