Re: Ulimit on machines

2014-10-02 Thread Andrew Bayer
That's all done, the boxes are configured, Jenkins restarted so that we get new SSH connections, etc. A. On Wed, Oct 1, 2014 at 4:34 PM, Andrew Bayer wrote: > You mean the change Rajiv just made? I'm not sure what that was exactly. > > On Wed, Oct 1, 2014 at 4:29 PM, Giridharan Kesavan > wrote:

Re: Ulimit on machines

2014-10-01 Thread Andrew Bayer
You mean the change Rajiv just made? I'm not sure what that was exactly. On Wed, Oct 1, 2014 at 4:29 PM, Giridharan Kesavan wrote: > Andrew, > > could you pls fix them in the ansible script, that way > the configuration is re-producible? > https://github.com/apache/toolchain/ > > Let me know if y

Re: Ulimit on machines

2014-10-01 Thread Giridharan Kesavan
Andrew, ​could you pls fix them in the ansible script, that way the configuration is re-producible? ​https://github.com/apache/toolchain/ Let me know if you need help with fixing through ansible.. -giri On Wed, Oct 1, 2014 at 3:57 PM, Andrew Bayer wrote: > Tweaking all the slaves to go offli

Re: Ulimit on machines

2014-10-01 Thread Andrew Bayer
Tweaking all the slaves to go offline when idle - I'll switch 'em back to normal "always on" once they've all had a chance to disconnect/reconnect. A. On Wed, Oct 1, 2014 at 3:50 PM, Rajiv Chittajallu wrote: > /etc/security/limits.conf is only used by pam_sessions. Limits are set for > processes

Re: Ulimit on machines

2014-10-01 Thread Rajiv Chittajallu
/etc/security/limits.conf is only used by pam_sessions. Limits are set for processes, based on this configs, only if an session is initiated via a process (login/sudo/ssh etc) that uses PAM. Processes started by upstart, or manually (including root) would only inherit parent limits, what ever that

Re: Ulimit on machines

2014-10-01 Thread Andrew Bayer
Root seems to still have that set to 1024 - might be that the way that Jenkins is ssh'ing it's inheriting the limits from root or something? On Wed, Oct 1, 2014 at 3:14 PM, Giridharan Kesavan wrote: > It’s set permanently in the limits.conf. But somehow jenkins its not > picking it up > , even af

Re: Ulimit on machines

2014-10-01 Thread Rajiv Chittajallu
David, Ulimits are set on process startup. I think Jenkins slaves are started via ssh, if PAM is used, pam_limits would set them based on /etc/security/limits.conf. Host reboot is not required. For child process should inherit parent by default. Looking at sshd_config, UsePAM is no --- #

Re: Ulimit on machines

2014-10-01 Thread Giridharan Kesavan
It’s set permanently in the limits.conf. But somehow jenkins its not picking it up ​, even after a reboot.​ ​ ​ jenkins@asf905:~$ hostname -fasf905.gq1.ygridcore.net jenkins@asf905:~$ ulimit -n 6 jenkins@asf905:~$ cat /etc/security/limits.conf | grep nofile #- nofile - max number of o

Ulimit on machines

2014-10-01 Thread David Nalley
Rajiv: Can you take a look at BUILDS-17 - we don't seem to be able to change ulimit on a number of machines at Yahoo!. Or rather, it's not preserved past reboot it seems. https://issues.apache.org/jira/browse/BUILDS-17 Thanks, --David