Closed Bug 733537 Opened 13 years ago Closed 13 years ago

set up sysctl module in PuppetAgain

Categories

(Infrastructure & Operations Graveyard :: CIDuty, task, P2)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dustin, Assigned: kmoir)

References

Details

sysctl needs to be configured similarly to the existing 0.24.8 puppet. In particular, the max fd count must be 4096.
John, I don't see this in the old puppet files -- the sysctl.conf's in /N are stock (well, they're missing a few options that are present in 6.2, but nothing extra, and nothing about max fd count). From our talk it sounded like this was a *new* requirement for mock. So I don't know what the option name you're looking for is. I've added a sysctl module - https://github.com/duritong/puppet-sysctl - to hg.m.o/puppet. You should be able to add a line similar to that described in the module's README to modules/toplevel/manifests/slave/build.pp to achieve the desired effect.
Assignee: nobody → jhford
Yes, this is a new requirement for b2g. This setting is unrelated to using mock, it's a requirement of being able to link libxul for b2g with the toolchain we need to use.
Actually, I ended up setting this value by deploying a file to /etc/security/limits.d to set this limit. changeset: 125:8b5298e4c47c tag: tip user: John Ford <jhford@mozilla.com> date: Fri Mar 16 11:50:42 2012 -0700 summary: set file descriptor correctly on linux build slaves Lets re-evaluate adding the sysctl module if we have other sysctl changes to make.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You could use content => "hard nofile 4096\nsoft nofile 4096\n" too, to simplify that (and be able to substitute a variable directly later). Please add this class to the puppetagain module docs before closing. (The sysctl module is already added, and there's no reason to take it out, so I'll leave it.)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee: jhford → kmoir
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
Component: Platform Support → Buildduty
Product: Release Engineering → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.