I see that there''s a thread from September asking a very similar question ("Official puppetlabs position on cron vs puppet as a service?"). I want to ask what should I take into account when making this decision? Just some background: - All my servers are Red Hat or CentOS - We have about 5 servers managed by Puppet now. The goal is to have ~50 servers. These are generally bastion xen guests . A lot of them have minimal amount of RAM--sometimes the minimum recommended by the application. Any recommendations? My initial thought: 1. Run `puppet agent --onetime` every 30 minutes on agents 2. Run `service puppetmaster restart` on the master every 12 hours. TIA. -- 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.
Christopher Wood
2011-Dec-04 16:53 UTC
Re: [Puppet Users] Running puppet agent and master from cron jobs
On Sun, Dec 04, 2011 at 07:51:28AM -0800, bel wrote:> I see that there''s a thread from September asking a very similar > question ("Official puppetlabs position on cron vs puppet as a > service?"). I want to ask what should I take into account when making > this decision? > > Just some background: > > - All my servers are Red Hat or CentOS > - We have about 5 servers managed by Puppet now. The goal is to have > ~50 servers. > > These are generally bastion xen guests . A lot of them have minimal > amount of RAM--sometimes the minimum recommended by the application. > > Any recommendations? My initial thought:Only that you have your puppet setup also managed by puppet. (Obviously there''s a bootstrap issue to work with, but smooth sailing thereafter.)> 1. Run `puppet agent --onetime` every 30 minutes on agentsDefinitely use fdqn_rand (see the function list) in the cron job minutes to spread these out.> 2. Run `service puppetmaster restart` on the master every 12 hours.I''ve personally never needed to do this. Now I''m nosy about puppetmaster uptime.> TIA. > > -- > 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. > >-- 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.
Gabriel Filion
2011-Dec-05 02:19 UTC
Re: [Puppet Users] Running puppet agent and master from cron jobs
On 11-12-04 11:53 AM, Christopher Wood wrote:>> 1. Run `puppet agent --onetime` every 30 minutes on agents > Definitely use fdqn_rand (see the function list) in the cron job minutes to spread these out.yep, we use a bash-version of this random time thing. You''ll quickly notice that you need to randomize client check-in times to ease up some load on the master: if everyone requests their catalogs at the same time, your puppetmaster won''t be able to survive around 100 clients (maybe even less). another option for this is to use marionette-collective to do the client scheduling for you. but if you want to start your setup small and simple, the run interval randomization is quite sufficient.>> > 2. Run `service puppetmaster restart` on the master every 12 hours. > I''ve personally never needed to do this. Now I''m nosy about puppetmaster uptime.Here, puppet is run via Apache with the passenger module, so the service simply doesn''t need any restarting at all (since the puppetmaster code is only interpreted when a request is made) -- Gabriel Filion -- 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.