The below seems to give me several minutes of 15-60% cpu usage. As far as I can tell there doesn''t seem to be anything really wrong with my configuration. Anyone have any idea why this might be the case? I also get about 6% memory usage. This is a 3.0 ghz Xeon with 2 gigs of memory. class apache2 { file { "/etc/apache2": recurse => "true", links => "follow", # No replace since puppet cannot handle threads at this # time. We''re using this directory purely for the sake # of the exec below. replace => "false", owner => "root", group => "root", mode => "0750", source => "/nfs/path/to/apache2/" } exec { "rsync -avl /nfs/path/to/apache2/ /etc/apache2 ; apache2ctl graceful": refreshonly => "true", subscribe => File["/etc/apache2"], path => "/usr/bin:/usr/sbin:/bin" } } node hostname { include apache2 }
Cameron wrote:> The below seems to give me several minutes of 15-60% cpu usage. As far as > I can tell there doesn''t seem to be anything really wrong with my > configuration.Can you run with --debug and see if the rsync command is being executed every run? My guess is that recursion and following symbolic links is causing some sort of thrashing, and the rsync command is then being executed every time. Cheers, -- Jeff McCune Systems Manager The Ohio State University Department of Mathematics _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Tried debug, it''s just checking the checksum of every file. I changed links to "manage", should I try a different setting? The rsync command is _not_ being run everytime, only when there''s a change. Or at the very least it''s definitely not running every time. Thanks for your response however. On Tue, 24 Jul 2007, Jeff McCune wrote:> Cameron wrote: >> The below seems to give me several minutes of 15-60% cpu usage. As far as I >> can tell there doesn''t seem to be anything really wrong with my >> configuration. > > Can you run with --debug and see if the rsync command is being executed every > run? > > My guess is that recursion and following symbolic links is causing some sort > of thrashing, and the rsync command is then being executed every time. > > Cheers, > -- > Jeff McCune > Systems Manager > The Ohio State University > Department of Mathematics >