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 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.