-
Notifications
You must be signed in to change notification settings - Fork 19
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
BACK-END ANALYSIS: Overloaded & Inefficient Job Scheduling (Cron Jobs & Background Processes) #1929
Comments
JFYI @Giveth/devops |
this are all the cronjobs, they run closely to each other. Using crontab times. We can move some maybe 5 minutes apart as a first step to reduce cpu usage |
Caches saved on redis
|
As a first step we should move the cronjobs to not all run together as it puts a lot of strain. |
In the root we run, afterwards on donations. await refreshProjectEstimatedMatchingView(); |
Suggest also removing threads library. It increases memory consumption drastically. But can do a comparison |
@divine-comedian, @CarlosQ96 I added comments and table inside notion file |
I can't see the logs, seems Grafana is not well. @divine-comedian @CarlosQ96 is the problem with production or staging? |
same on mine side, no data, you should tag @geleeroyale and @mhmdksh |
Thanks team! Don't forget this issue is focused on documenting and ANALYSING the area of concern (Overloaded & Inefficient Job Scheduling) - provide any documentation, finds and/or proposed solutions into the notion article I provided above! We do not need to execute any changes to our codebase as part of this issue. |
when you open user profile page it runs 3 queries about your profile, donation stats, information about project - runs 3 queries can we batch those queries and make 1 request to the back-end. kechy needs to find package name |
Overloaded & Inefficient Job Scheduling (Cron Jobs & Background Processes)
Problem: The back-end runs too many resource-intensive cron jobs, leading to CPU spikes and performance degradation.
We should investigate this area of concern and provide analysis documentation to diagnose the back-end issues
leave related documentation inside notion is here -> https://www.notion.so/giveth/Back-End-Improvements-1913ab28d48c80ff8dd7d4d643d2960a?pvs=4#1913ab28d48c8086b310d347fb62ddbe
The text was updated successfully, but these errors were encountered: