-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Excessive CPU use on UReport #720
Comments
there is a task to calculate the stats from the DB and cache them so that https://github.com/Ilhasoft/ureport/blob/main/ureport/public/views.py#L367 uses the cache results so far we continuously recalculate the stats probably one way we can reduce the number of queries would be to reduce the number of queries by having an expiring flag like in redis that we set after we finished calculating the stats and check that the flag is expired or not present to recalculate the stats. What do you propose as solution to the problem? |
We are talking about instance CPU usage? I don't feel we see very high instance usage on U-Report. Views shouldn't be taking much of any CPU if the results are properly cached. (which they should be) |
Yes, thanks for sharing this @norkans7 and @nicpottier, we've discovered that we're not running the Memory usage is fine, but CPU is still a bottleneck. Take a look at the yellow line, it's the limit of 2 vCPUs in 2 different replicas: How much CPU do you provide for the U-Report application? |
Yes, the The CPU now is from the tasks which why I mentioned that we currently continuously run the queries on a schedule even if no new stats will be updated. |
Hi @norkans7 , thanks a lot for these improvements. We updated our instance here and we will observe the behavior, and any improvements that we can get we will bring here to discuss and then open a PR. |
Hi everyone, I can share with you a strange behavior on the UReport instance. We have a machine to run the UReport instance with 2cpu cores and 14GB ram of memory available. But most of the time we have observed excessive CPU use when using totally for 2 CPU cores. This behavior Is that normal? On our instance we have 54 workspaces configured.
Beyond this, we investigate and accurate here some methods on the application that have a high cost from resources, especially from CPU. The points are:
/engagement_data/
APIThe text was updated successfully, but these errors were encountered: