Issue #6717 has been updated by Daniel Pittman.

Aaron Dummer wrote:
> Foreign keys make it easier to delete related data.

Thanks for that.  Is there any chance you could reformulate that as a GitHub 
pull request, and get the CLA agreed to?  That would make it easier for us to 
integrate this change, and future changes you make.

Otherwise we will likely get to this, but not quite so soon.

Thanks.
----------------------------------------
Feature #6717: Cleanup of table resource_statuses in dashboard-database
https://projects.puppetlabs.com/issues/6717

Author: Bart Descamps
Status: Accepted
Priority: High
Assignee: 
Category: 
Target version: 2.x
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.

Reply via email to