Skip to content
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-port 0.3: Reaper optimization. #698

Open
wants to merge 1 commit into
base: release-0.3
Choose a base branch
from

Conversation

jortel
Copy link
Contributor

@jortel jortel commented Jul 4, 2024

The default reaper frequency is (1) minute.

The reapers are performing 3-4 queries for every file and bucket evaluated for reaping. With the addition of attaching files to tasks and task-reports, the number of files has increased substantially. The current algorithm will run 3-4 queries for each resource evaluated.

For example: A deployment with 2000 analyzed applications can have ~25,000 files. To evaluate 4 resources for references (Task, TaskGroup, Rule, Target) resulted in 100,000 queries each reaper run.

This PR each run (default: 1/ minute) :

  • FileReaper will run exactly 4 queries.
  • BucketReaper will run exactly 3 queries.

Signed-off-by: Jeff Ortel <[email protected]>
@jortel jortel force-pushed the backport-reaper-optimization branch from 561b627 to 8f35776 Compare July 4, 2024 13:53
@jortel jortel marked this pull request as ready for review July 5, 2024 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants