Fixes #4072 Prevent high CPU load from resource fetcher#4139
Merged
remyperona merged 8 commits intodevelopfrom Jul 16, 2021
Merged
Fixes #4072 Prevent high CPU load from resource fetcher#4139remyperona merged 8 commits intodevelopfrom
remyperona merged 8 commits intodevelopfrom
Conversation
remyperona
approved these changes
Jul 7, 2021
Contributor
Author
|
@wp-media/qa To test this change we need to make sure of the following:-
|
remyperona
approved these changes
Jul 12, 2021
Mai-Saad
reviewed
Jul 15, 2021
Contributor
There was a problem hiding this comment.
Testing is done.
With the latest recheck of performance after external files change => Total Fetch time increased (compared to trunk) while CPU utilization decreased
Notes:
- Recommend team check the time in red cases
- Fetch time on trunk decreased a lot compared to 1st measurements
testrail-report-217.pdf
https://docs.google.com/spreadsheets/d/1bIrRtsvQrYBytseOH8bPznq0G0excSCgVtvbrvtiyWg/edit?usp=sharing
Contributor
|
Fetch time increase can make sense since we're now doing more processing later instead of upfront, so each individual fetch job will take longer. The difference is small, which is acceptable. The reduction in CPU load is more important in that case. |
Mai-Saad
approved these changes
Jul 16, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
We splitted the processing time between
ResourceFetcherandResourceFetcherProcessas follows:-ResourceFetcher Responsibility
ResourceFetcherProcessbackground process.ResourceFetcherProcess Responsibility
So we moved the content-related methods to be on
ResourceFetcherProcessFixes #4072
Type of change
Please delete options that are not relevant.
Is the solution different from the one proposed during the grooming?
Yes exactly the same
How Has This Been Tested?
Checklist: