Issue #6717 has been updated by Jacob Helwig.
>From a reply on puppet-bugs:
Hi all,
Perhaps a review of what should be pruned is in order too. I think it is an
error to prune or delete reports purely on their age. A host that hasn't
reported for some time shouldn't be stripped of its reports imho.
Perhaps keeping the amount of reports per host a more valid way to prune
your database?
Regards,
Kai
----------------------------------------
Feature #6717: Cleanup of table resource_statuses in dashboard-database
https://projects.puppetlabs.com/issues/6717
Author: Bart Descamps
Status: Accepted
Priority: Normal
Assignee:
Category:
Target version:
Keywords: dashboard, resource_statuses, cleanup
Branch:
Affected URL:
Affected Dashboard version:
Recently our dashboard-database reached about 90% of it's assigned diskspace
and I suspected the reports to be the cause. However, we do already use the
rake prune:reports feature (in a cronjob) so our older reports are
automatically purged.
The problem wasn't with the reports though but with the table
resource_statuses. It had grown over 21 GB. I deleted the oldest records (which
wasn't that easy as this locks the mysql-table (innodb)).
Having a similar tool (rakefile) as is available for the reports would be quite
nice though. I don't really see the benefit of keeping lots of old resource
statuses anyway, so being able to schedule another cronjob that cleans these up
would be nice.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.