Skip to content

(opt) Optmize EventReport collection#475

Merged
gianlucam76 merged 1 commit intoprojectsveltos:mainfrom
gianlucam76:eventreports-collection
Apr 27, 2026
Merged

(opt) Optmize EventReport collection#475
gianlucam76 merged 1 commit intoprojectsveltos:mainfrom
gianlucam76:eventreports-collection

Conversation

@gianlucam76
Copy link
Copy Markdown
Member

When in agentless mode, all EventReport instances are in the management cluster. Instead of doing one query per cluster to get EventReports for a given cluster, query once all EventReports instances. Then process only the instance for managed clusters with correct cluster shard.

Collect EventReports only from clusters that match at least one EventTrigger. This avoids collecting from clusters with no EventReports.

When more than 50 clusters are present with drift detection, use workers to parallelize the work (up to 5 workers).

When in agentless mode, all EventReport instances are in the management
cluster. Instead of doing one query per cluster to get EventReports for
a given cluster, query once all EventReports instances. Then process only
the instance for managed clusters with correct cluster shard.

Collect EventReports only from clusters that match at least one EventTrigger.
This avoids collecting from clusters with no EventReports.

When more than 50 clusters are present with drift detection, use workers to
parallelize the work (up to 5 workers).
@gianlucam76 gianlucam76 merged commit e717a31 into projectsveltos:main Apr 27, 2026
6 checks passed
@gianlucam76 gianlucam76 deleted the eventreports-collection branch April 27, 2026 11:25
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.

1 participant