Bug 1741943
Summary: | Postgres usage spikes and disk space completely filled up, when non-admin select Monitor -> Tasks | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Ranjan Kumar <rankumar> |
Component: | Tasks Plugin | Assignee: | Ondřej Ezr <oezr> |
Status: | CLOSED ERRATA | QA Contact: | Peter Ondrejka <pondrejk> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.5.0 | CC: | ahumbe, aruzicka, dsynk, egolov, inecas, jpasqual, mhulan, oezr, tbrisker |
Target Milestone: | 6.9.0 | Keywords: | Performance, Triaged, UserExperience |
Target Release: | Unused | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | foreman-2.3.0-0 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-04-21 13:11:48 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: | |||
Bug Depends On: | 1921150 | ||
Bug Blocks: |
Description
Ranjan Kumar
2019-08-16 13:52:06 UTC
Looking at the database, looks like there are a lot of tasks and locks: > ForemanTasks::Task.count => 51758 > ForemanTasks::Lock.count => 115517 This might also be related to the number of locations and organizations, causing the join query to get out of hand: > Taxonomy.count => 21 The relevant part of the stack trace is: /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.17.5.7/app/models/foreman_tasks/task/summarizer.rb:92:in `group_by' /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.17.5.7/app/models/foreman_tasks/task/summarizer.rb:92:in `add_to_summary' /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.17.5.7/app/models/foreman_tasks/task/summarizer.rb:81:in `summary' /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.17.5.7/app/controllers/foreman_tasks/tasks_controller.rb:20:in `summary' While the server shouldn't crash even in such a case, a possible workaround until this is fixed is to clean up old tasks. Created redmine issue https://projects.theforeman.org/issues/30797 from this bug Upstream bug assigned to oezr Upstream bug assigned to oezr Upstream PR was merged, moving to POST Verified on Satellite 6.9 snap 17 with 20+ organizations, no postgres spikes recorded Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Satellite 6.9 Release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:1313 |