[Puppet Users] high cpu usage and slow puppet performance..

2009-03-12 Thread barrowkwan
looks like the following could cause high cpu usage and take puppet longer time to finish a catalog run file { "/some/path": owner => "user1", group => "group1", ensure => directory, recurse => true } especially whe

[Puppet Users] Re: high cpu usage and slow puppet performance..

2009-03-12 Thread Lindsay Holmwood
On 12/03/2009, at 18:41, barrowkwan wrote: > > looks like the following could cause high cpu usage and take puppet > longer time to finish a catalog run > > >file { "/some/path": >owner => "user1", >group => "group1", >ensure => directory, >recurse => true >

[Puppet Users] Re: high cpu usage and slow puppet performance..

2009-03-12 Thread Robin Lee Powell
On Thu, Mar 12, 2009 at 06:51:59PM +1100, Lindsay Holmwood wrote: > > On 12/03/2009, at 18:41, barrowkwan wrote: > > > > > looks like the following could cause high cpu usage and take > > puppet longer time to finish a catalog run > > > > > >file { "/some/path": > >owner => "user1",

[Puppet Users] puppetmaster stops responding to some clients?

2009-03-12 Thread Daniel Pittman
G'day. We are running into a regular problem, which I can't track down, where puppetmaster will simply stop responding appropriately to clients. I have exhausted my ideas for debugging this, so I turn to y'all for advice on where next to look in terms of tracking down and killing the root of the

[Puppet Users] Puppet best practices: location specific configuration...

2009-03-12 Thread Daniel Pittman
G'day. We are using Puppet to manage hosts on our network at work, and one aspect that is causing me some cognitive discomfort is the question: How to best manage location-specific configuration We have three network, with different topologies, which communicate between themselves: one at a

[Puppet Users] Re: high cpu usage and slow puppet performance..

2009-03-12 Thread Lindsay Holmwood
2009/3/12 Robin Lee Powell : > > On Thu, Mar 12, 2009 at 06:51:59PM +1100, Lindsay Holmwood wrote: >> >> Puppet has to do a stat and md5sum on every file under that path, > > It *what*?  Just for an owner and group check?  Why? > > Can that be turned off?  We got a lot of performance out of cfengi

[Puppet Users] Re: high cpu usage and slow puppet performance..

2009-03-12 Thread Bruce Richardson
On Thu, Mar 12, 2009 at 12:41:40AM -0700, barrowkwan wrote: > > anyone have the same problem? Which filesystem are you using? Some of them perform badly for tasks that iterate over a large directory heirarchy. JFS is particularly bad at this. -- Bruce Remember you're a Womble. --~--~--

[Puppet Users] Re: Puppet best practices: location specific configuration...

2009-03-12 Thread R.I.Pienaar
Hello, > We are using Puppet to manage hosts on our network at work, and one > aspect that is causing me some cognitive discomfort is the question: > > How to best manage location-specific configuration The way I generally deal with this is with a parser function[1] that look up data elsew

[Puppet Users] Re: high cpu usage and slow puppet performance..

2009-03-12 Thread Brice Figureau
On Thu, 2009-03-12 at 00:41 -0700, barrowkwan wrote: > looks like the following could cause high cpu usage and take puppet > longer time to finish a catalog run > > > file { "/some/path": > owner => "user1", > group => "group1", > ensure => directo

[Puppet Users] Re: module dependencies

2009-03-12 Thread Keith Edmunds
> You can depend on a class: > > require => Class[thatclass], > before => Class[thatotherclass] But can I cause a module (or class) to depend on a class? If so, I can't find the correct syntax. Thanks, Keith --~--~-~--~~~---~--~~ You received this mes

[Puppet Users] Re: Puppet best practices: location specific configuration...

2009-03-12 Thread Macno
Hi, >     How to best manage location-specific configuration I generally approach this issue with node's inheritance, managing variables at different levels, according to custom needs.. An example is better than many words: node basenode { $puppet_server = "10.42.0.10" $local_ne

[Puppet Users] Re: module dependencies

2009-03-12 Thread Bruce Richardson
On Thu, Mar 12, 2009 at 11:36:23AM +, Keith Edmunds wrote: > > > You can depend on a class: > > > > require => Class[thatclass], > > before => Class[thatotherclass] > > But can I cause a module (or class) to depend on a class? If so, I can't > find the correct syntax. If you wan

[Puppet Users] Re: best practices stand-alone puppet

2009-03-12 Thread Geoff Newell
Yes. I've done something similar for creating turn-key systems. Do a kickstart of the host and as part of the kickstart, retrieve a puppet manifest from CVS/Subversion. Then run the 'puppet' binary against the manifest to do the final host specific config on the turn-key system. Works great and pro

[Puppet Users] Re: module dependencies

2009-03-12 Thread Thomas Bellman
Keith Edmunds wrote: >> You can depend on a class: >> >> require => Class[thatclass], >> before => Class[thatotherclass] > > But can I cause a module (or class) to depend on a class? If so, I can't > find the correct syntax. No. You need to let individual resources within that class

[Puppet Users] Re: module dependencies

2009-03-12 Thread Keith Edmunds
On Thu, 12 Mar 2009 14:37:40 +0100, bell...@nsc.liu.se said: > No. You need to let individual resources within that class or module > depend on the other class. Thanks Thomas, I suspected as much. Would it be appropriate to create a wishlist item that a module depends on another (module|class)

[Puppet Users] Re: module dependencies

2009-03-12 Thread Larry Ludwig
On Mar 12, 2009, at 10:14 AM, Keith Edmunds wrote: > > On Thu, 12 Mar 2009 14:37:40 +0100, bell...@nsc.liu.se said: > >> No. You need to let individual resources within that class or module >> depend on the other class. > > Thanks Thomas, I suspected as much. > > Would it be appropriate to creat

[Puppet Users] Re: module dependencies

2009-03-12 Thread Bruce Richardson
On Thu, Mar 12, 2009 at 02:14:34PM +, Keith Edmunds wrote: > > Would it be appropriate to create a wishlist item that a module depends on > another (module|class)? I'm not entirely sure what you mean by this. A module has no real existence of it's own, within puppet; it's just a convenient

[Puppet Users] Re: high cpu usage and slow puppet performance..

2009-03-12 Thread barrowkwan
very nice explanation in your blog. Thanks! I am a bit confused. sometime it said the patch is on 0.25 but sometimes it said 0.24.8, so which version/release will have this fix? this problem really hurt our system... :( thanks! On Mar 12, 3:25 am, Brice Figureau wrote: > On Thu, 2009-03-12

[Puppet Users] file list

2009-03-12 Thread Rene
Hi Is it possible to get a file list, that are managed / edited by puppet, do I have to parse the yaml file on the client manualy and look for file entries? Thanks in advance Rene --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Puppet Users] Re: high cpu usage and slow puppet performance..

2009-03-12 Thread Brice Figureau
On 12/03/09 17:31, barrowkwan wrote: > very nice explanation in your blog. Thanks! > > I am a bit confused. sometime it said the patch is on 0.25 but > sometimes it said 0.24.8, so which version/release will have this > fix? this problem really hurt our system... :( Are you talking about the

[Puppet Users] Re: high cpu usage and slow puppet performance..

2009-03-12 Thread Joel Krauska
I avoid all the puppet serdes by just calling rsync. --~--~-~--~~~---~--~~ 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 g

[Puppet Users] Re: puppetmaster stops responding to some clients?

2009-03-12 Thread Paul Lathrop
Daniel, I started seeing these symptoms when my puppetmaster was overloaded with more clients than Webrick could handle. Are you running Webrick or something else? --Paul On Wed, Mar 11, 2009 at 11:17 PM, Daniel Pittman wrote: > > G'day. > > We are running into a regular problem, which I can't

[Puppet Users] Re: Puppet best practices: location specific configuration...

2009-03-12 Thread Joshua Anderson
Hi, Daniel. > So, we have these machine configurations: > > NTP master: fetch from an upstream server, serve local subnet > NTP client: fetch from local server, serve no one > > We need, for each host, to configure it as either an NTP master or > client, talking to the appropriate servers — and

[Puppet Users] Re: high cpu usage and slow puppet performance..

2009-03-12 Thread Peter Meier
Hi > Are you talking about the fix for the bug #1469? > If yes, it will be in 0.25 only (it would be very difficult to backport > it as it was possible to implement it for 0.25 because Luke did a huge > refactor of the file type). > > Note, that this bug improves the situation only if your fil

[Puppet Users] Re: puppetmaster stops responding to some clients?

2009-03-12 Thread Daniel Pittman
Paul Lathrop writes: > I started seeing these symptoms when my puppetmaster was overloaded > with more clients than Webrick could handle. Are you running Webrick > or something else? Whatever the default server is, so presumably Webrick, yes. Regards, Daniel --~--~-~--~~--

[Puppet Users] Re: puppetmaster stops responding to some clients?

2009-03-12 Thread Paul Lathrop
Daniel, Yep, you've hit the scaling wall. You need to check out http://reductivelabs.com/trac/puppet/wiki/UsingMongrel and switch to Mongrel sooner rather than later :-) --Paul On Thu, Mar 12, 2009 at 6:06 PM, Daniel Pittman wrote: > > Paul Lathrop writes: > >> I started seeing these symptoms

[Puppet Users] Re: puppetmaster stops responding to some clients?

2009-03-12 Thread Daniel Pittman
Paul Lathrop writes: > On Thu, Mar 12, 2009 at 6:06 PM, Daniel Pittman wrote: >> >> Paul Lathrop writes: >> >>> I started seeing these symptoms when my puppetmaster was overloaded >>> with more clients than Webrick could handle. Are you running Webrick >>> or something else? >> >> Whatever the