Robin Bowes
2010-Dec-20 18:17 UTC
[Puppet Users] Enhancement for puppetmaster init script to balance puppetmaster instances across CPU cores - RFC
Hi all, I''ve been asked to get comments on this proposed patch to /etc/init.d/puppetmaster: https://projects.puppetlabs.com/issues/5465 Alex Giurgiu modified the puppetmaster init script to balance puppetmaster instances across CPU cores. I updated his modification to use facter to get the no. of available cores, and to display the core used when each instance starts. Anyone got any thoughts/comments on this? R. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Mohit Chawla
2010-Dec-20 18:51 UTC
Re: [Puppet Users] Enhancement for puppetmaster init script to balance puppetmaster instances across CPU cores - RFC
On Mon, Dec 20, 2010 at 11:47 PM, Robin Bowes <robin-lists@robinbowes.com>wrote:> I updated his modification to use facter to get the no. of available > cores, and to display the core used when each instance starts >Using facter seems clean enough, but I was wondering if getting the information from cpuinfo instead would make it, so to say, foolproof. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
jcbollinger
2010-Dec-20 22:25 UTC
[Puppet Users] Re: Enhancement for puppetmaster init script to balance puppetmaster instances across CPU cores - RFC
On Dec 20, 12:51 pm, Mohit Chawla <mohit.chawla.bin...@gmail.com> wrote:> On Mon, Dec 20, 2010 at 11:47 PM, Robin Bowes <robin-li...@robinbowes.com>wrote: > > > I updated his modification to use facter to get the no. of available > > cores, and to display the core used when each instance starts > > Using facter seems clean enough, but I was wondering if getting the > information from cpuinfo instead would make it, so to say, foolproof.Is the task scheduler for some reason unable to move puppetmasterd tasks between CPUs if this is not done? In other words, is there even a problem here to be solved? The patch appears to constrain each puppetmasterd to be scheduled only on a specific core, which in many cases could be more of a problem than a solution. For instance, if one core is loaded down with a heavy computation, then the scheduler would be unable to migrate that core''s puppetmaster tasks to a different one. Only if the scheduler is already unable to do that does it make sense to me to accept this patch. If the general concept is adopted then I, too, have reservations about running Facter from the initscript. The scope of the script is narrow enough that I think it would be more appropriate to retrieve the information more directly, i.e. from /proc/cpuinfo. Also, it would assuage my sense of efficiency to move the determination of the number of cores outside the loop. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.