-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Reduce CPU usage on Scraper agent scraping large set of Azure ta…
…rgets (#2050) * Revise Promitor scraper task scheduling to organize Cron jobs by schedule instead of resource parameters, then handle multiple resources and/or resource discovery groups per job. Optionally enforce maximum degree of parallelism across all Cron jobs using a mutex shared across the jobs where each operation that requires network access to interact with the cluster is run on the thread pool and each counts as 1 against the degree of parallelism. # Conflicts: # src/Promitor.Agents.Scraper/Promitor.Agents.Scraper.csproj # src/Promitor.Agents.Scraper/Scheduling/SchedulingExtensions.cs * Begin addressing outstanding code scan issues. * Additional modifications per PR feedback to incorporate more unit tests and match styling. Additionally removed dulicate constants declarations for consistency. * Additional code analysis warnings remediated. * Update src/Promitor.Core.Scraping/Configuration/Model/MetricDimension.cs Co-authored-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Further PR feedback * Updated changelog. * Why is a markdown file limited to a maximum line length? (one smaller than that used by some IDEs for that matter) * Someone is going to have to explain to me the intent behind linting a documentation file for coding style. This just seems counterproductive. * Updating unit test organization per PR feedback Co-authored-by: Tom Kerkhove <kerkhove.tom@gmail.com>
- Loading branch information
1 parent
5064b55
commit ac1154f
Showing
23 changed files
with
1,036 additions
and
362 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.