8000 [Processor] Support statistics in async mode with multiple workers by rokatyy · Pull Request #3614 · nuclio/nuclio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Processor] Support statistics in async mode with multiple workers #3614

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

Merged

Conversation

rokatyy
Copy link
Contributor
@rokatyy rokatyy commented Apr 24, 2025

Adds support statistics in async mode with multiple workers + test for it.

Also, added mock-ed eventProcessor and moved all test to use it in case we need something to Mock.

Jira - https://iguazio.atlassian.net/browse/NUC-411

@rokatyy rokatyy requested review from TomerShor and weilerN April 24, 2025 13:45
Comment on lines +251 to +252
for _, object := range nba.objects {
stats := object.GetAllocationStatistics()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this function called in a critical path? If so, we might consider to do this concurrently.

Copy link
Contributor Author

Choose a reason for hiding 8000 this comment

The reason will be displayed to describe this comment to others. Learn more.

@TomerShor no, it's not a critical path. And since GetAllocationStatistics() is lightweight, introducing concurrency might only add unnecessary overhead and complexity.

@rokatyy rokatyy requested a review from TomerShor April 25, 2025 12:54
@TomerShor TomerShor merged commit 20d9d3c into nuclio:feature/nuc-201-phase2 Apr 27, 2025
2 checks passed
TomerShor pushed a commit that referenced this pull request Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0