I actually do for 2 weeks. rake RAILS_ENV=production reports:prune upto=2 unit=wk
On Wed, Jul 24, 2013 at 2:03 PM, Ramin K <[email protected]> wrote: > On 7/24/2013 1:49 PM, Felipe Salum wrote: > >> I had a friend helping me to debug and looks like it is taking forever >> to delete the entries from resource status table (a lot of entries). >> >> Is that something we can improve ? >> > > env RAILS_ENV=production rake reports:prune upto=5 unit=day > env RAILS_ENV=production rake reports:prune:orphaned > > You can change the RAILS_ENV and number of day, weeks, months, etc to > match your system and its needs. > > Sounds like you've never pruned so it's going to be slow going. Try > walking it forward like so. > > env RAILS_ENV=production rake reports:prune upto=3 unit=mon > env RAILS_ENV=production rake reports:prune upto=1 unit=mon > env RAILS_ENV=production rake reports:prune upto=2 unit=wk > env RAILS_ENV=production rake reports:prune upto=5 unit=day > > Don't forget to add this to your crontab with the retentions settings that > best fit your system. > > Ramin > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Puppet Users" group. > To unsubscribe from this topic, visit https://groups.google.com/d/** > topic/puppet-users/7-**sjp1Ef1p0/unsubscribe<https://groups.google.com/d/topic/puppet-users/7-sjp1Ef1p0/unsubscribe> > . > To unsubscribe from this group and all its topics, send an email to > puppet-users+unsubscribe@**googlegroups.com<puppet-users%[email protected]> > . > To post to this group, send email to [email protected]. > Visit this group at > http://groups.google.com/**group/puppet-users<http://groups.google.com/group/puppet-users> > . > For more options, visit > https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> > . > > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
