Bug 1428012
Summary: | [RFE] Feature to truncate trend tables | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Paul Armstrong <parmstro> |
Component: | Trends | Assignee: | Ivan Necas <inecas> |
Status: | CLOSED WONTFIX | QA Contact: | Katello QA List <katello-qa-list> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.2.8 | CC: | inecas, jcallaha, mhulan, oprazak, sshtein |
Target Milestone: | Unspecified | Keywords: | FutureFeature |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-09-04 19:05:35 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Comment 4
Marek Hulan
2017-03-02 07:59:44 UTC
As Marek said, in 6.2 trends are stored as intervals, which should reduce the number of records significantly. The task that converts old format (point in time) to the new one is the trends:reduce task. Unfortunately we don't have a task that would clear old intervals from database yet. You can do it manually by running "foreman-rake console" and then: interval_end = TrendCounter.arel_table[:interval_end] TrendCounter.where(interval_end.lt(30.days.ago)).delete_all Before running the deletion procedure, I still recommend running foreman-rake trends:reduce And only if it doesn't help, start deleting old records. Created redmine issue http://projects.theforeman.org/issues/22767 from this bug Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you. Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you. |