QUESTION: launch Jenkins builds/slave connections with 'nice'

21 views
Skip to first unread message

Victor Martinez

unread,
Jun 14, 2016, 4:24:53 AM6/14/16
to Jenkins Users
Hi there,

 I've been googling a bit and I couldn't find much information about a way to launch all builds on all Jenkins slaves (well, at least for Linux and Mac slaves) with "nice", only a reference from 2008:


 That would set the priority of builds to -10, which means that system processes, like cron, zabbix, puppet, etc. take priority. It wouldn't really slow down the builds, but would make the system more responsive when the CPU hits 100%.

 Reason: We have slow SSH login and zabbix monitoring timeouts whenever a slave is at 100% CPU usage.

Thanks so much

Baptiste Mathus

unread,
Jun 16, 2016, 3:11:51 AM6/16/16
to jenkins...@googlegroups.com

Seems like it should be fairly feasible at least for jnlp if you start the JVM with nice. Though I'm not sure at all that kind of thing is inherited. So any step spawned from the agent's running jar might have a nice value back to 0.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/39333843-cd13-45f2-be44-f6f748ab33cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages