Hello there, I am some complains from people there at my work that puppetd "takes too mutch CPU"... Is there some method to downcase the CPU usage when it is waked-up ? (this people make me crazy... ) -- Xavier Beaudouin - http://kazar.net/ http://magicduck.labrute.fr/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
cpu or memory? you can run puppet with nice, but if it will restart services, they will be niced too. if its memory, you can swtich to cron. cheers, Ohad On Mon, Oct 19, 2009 at 5:42 PM, Xavier Beaudouin <xbeaudouin@gmail.com>wrote:> Hello there, > > I am some complains from people there at my work that puppetd "takes too > mutch CPU"... > > Is there some method to downcase the CPU usage when it is waked-up ? > > (this people make me crazy... ) > > -- > Xavier Beaudouin - http://kazar.net/ > http://magicduck.labrute.fr/ > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
CPU usage, memory is not (yet) a problem... Nice, is an idea, but I think dangerous IMHO... /Xavier 2009/10/19 Ohad Levy <ohadlevy@gmail.com>> cpu or memory? > > you can run puppet with nice, but if it will restart services, they will be > niced too. > if its memory, you can swtich to cron. > > cheers, > Ohad > > > On Mon, Oct 19, 2009 at 5:42 PM, Xavier Beaudouin <xbeaudouin@gmail.com>wrote: > >> Hello there, >> >> I am some complains from people there at my work that puppetd "takes too >> mutch CPU"... >> >> Is there some method to downcase the CPU usage when it is waked-up ? >> >> (this people make me crazy... ) >> >> -- >> Xavier Beaudouin - http://kazar.net/ >> http://magicduck.labrute.fr/ >> >> >> > > > >-- -- Xavier Beaudouin - http://kazar.net/ http://magicduck.labrute.fr/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
puppet is usually not using too much of cpu.. (unless your users are running on the puppetmaster ;)) maybe you can restrict the amount of things puppet do in each run with the schedule metadata. Ohad On Mon, Oct 19, 2009 at 5:54 PM, Xavier Beaudouin <xbeaudouin@gmail.com>wrote:> CPU usage, memory is not (yet) a problem... > > Nice, is an idea, but I think dangerous IMHO... > > /Xavier > > 2009/10/19 Ohad Levy <ohadlevy@gmail.com> > > cpu or memory? >> >> you can run puppet with nice, but if it will restart services, they will >> be niced too. >> if its memory, you can swtich to cron. >> >> cheers, >> Ohad >> >> >> On Mon, Oct 19, 2009 at 5:42 PM, Xavier Beaudouin <xbeaudouin@gmail.com>wrote: >> >>> Hello there, >>> >>> I am some complains from people there at my work that puppetd "takes too >>> mutch CPU"... >>> >>> Is there some method to downcase the CPU usage when it is waked-up ? >>> >>> (this people make me crazy... ) >>> >>> -- >>> Xavier Beaudouin - http://kazar.net/ >>> http://magicduck.labrute.fr/ >>> >>> >>> >> >> >> > > > -- > -- > Xavier Beaudouin - http://kazar.net/ > http://magicduck.labrute.fr/ > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hum... People there think it is use to mutch... more than 20% during a run... 2009/10/19 Ohad Levy <ohadlevy@gmail.com>> puppet is usually not using too much of cpu.. (unless your users are > running on the puppetmaster ;)) > > maybe you can restrict the amount of things puppet do in each run with the > schedule metadata. >How can I do that.. ? /Xavier -- Xavier Beaudouin - http://kazar.net/ http://magicduck.labrute.fr/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Mon, 2009-10-19 at 12:01 +0200, Xavier Beaudouin wrote:> Hum... People there think it is use to mutch... more than 20% during a > run...Remember something: you paid for that CPU, that means you want to use it as much as you can otherwise you paid for something you don''t use. With that in mind, the optimal load on a server should be 100% CPU used :-) If those servers are not used or have room for 20% of CPU used by puppet, then it shouldn''t matter, the kernel scheduler will do what it needs to allocate CPU to every running programs. If those servers are already 100% loaded, then that''s an issue, and you might: * let puppet run less frequently or do CPU bound things less frequently * isolate what consumes CPU when doing a run (do you have unbounded execs?) * does your package manager consumes CPU? In my own experience, puppetd itself is usually more I/O bound (ie network and disk) than cpu bound, but since it depends entirely on what you have in your manifest, YMMV.> 2009/10/19 Ohad Levy <ohadlevy@gmail.com> > puppet is usually not using too much of cpu.. (unless your > users are running on the puppetmaster ;)) > > maybe you can restrict the amount of things puppet do in each > run with the schedule metadata. > > How can I do that.. ?See: http://reductivelabs.com/trac/puppet/wiki/MetaparameterReference#schedule -- Brice Figureau Follow the latest Puppet Community evolutions on www.planetpuppet.org! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi Brice, 2009/10/19 Brice Figureau <brice-puppet@daysofwonder.com>> > On Mon, 2009-10-19 at 12:01 +0200, Xavier Beaudouin wrote: > > Hum... People there think it is use to mutch... more than 20% during a > > run... > > Remember something: you paid for that CPU, that means you want to use it > as much as you can otherwise you paid for something you don''t use. > With that in mind, the optimal load on a server should be 100% CPU > used :-) >Yeah but those people want the CPU used for some things that is based on non reliable protocols (eg multicast) and doesn''t want to loose on packet... In fact, we are providing (lots !) of servers, and the users uses them...> If those servers are not used or have room for 20% of CPU used by > puppet, then it shouldn''t matter, the kernel scheduler will do what it > needs to allocate CPU to every running programs. >Yeah, this is what I am telling them.... without no luck. I think this will going into crontab... :(> If those servers are already 100% loaded, then that''s an issue, and you > might: > * let puppet run less frequently or do CPU bound things less frequently > * isolate what consumes CPU when doing a run (do you have unbounded > execs?) > * does your package manager consumes CPU? >We don''t use package manager except the rpm on RHEL 4 or 5...> In my own experience, puppetd itself is usually more I/O bound (ie > network and disk) than cpu bound, but since it depends entirely on what > you have in your manifest, YMMV. >Mostly simple things : - check snmpd.conf - check resolv.conf - check hosts - check stuff in /etc/sysconfig/network-scripts are good - check munin.conf - check the tnsnames files - check the syslogd.conf I really thinks they are brain damaged.... especialy with the machines that has 8 cores... /Xavier> > 2009/10/19 Ohad Levy <ohadlevy@gmail.com> > > puppet is usually not using too much of cpu.. (unless your > > users are running on the puppetmaster ;)) > > > > maybe you can restrict the amount of things puppet do in each > > run with the schedule metadata. > > > > How can I do that.. ? > > See: > http://reductivelabs.com/trac/puppet/wiki/MetaparameterReference#schedule > > -- > Brice Figureau > Follow the latest Puppet Community evolutions on www.planetpuppet.org! > > > > >-- -- Xavier Beaudouin - http://kazar.net/ http://magicduck.labrute.fr/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Oct 19, 2009, at 3:01 AM, Xavier Beaudouin wrote:> Hum... People there think it is use to mutch... more than 20% during > a run...I''d expect Puppet to use as much cpu as possible while it''s actively configuring a box, unless it''s IO bound, and the only way around this is to nice it, which as mentioned means the services it starts are also niced, which is probably a bad idea. In other words, you''re kind of stuck unless you want to somehow just put a sleep in between each resource or something weird. -- He is indebted to his memory for his jests and to his imagination for his facts. --Richard Brinsley Sheridan --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---