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

Open-source probe analyzer handles multi-threading #558

Merged
merged 7 commits into from
Aug 17, 2023

Conversation

YDMsama
Copy link
Contributor

@YDMsama YDMsama commented Aug 11, 2023

Description

We've optimized the networkanalyzer component of the open-source probe analyzer. By leveraging Go's goroutines, we've separated event reception from processing, allowing them to run concurrently. The ConsumeEvent function now queues events, while a new ProcessEvents function, running in its own goroutine, handles processing. This enhancement boosts efficiency, especially under high event loads.

How Has This Been Tested?

The compiled image can run normally locally and receive data.

…ines to modify the event reception and processing in networkanalyzer into multiple threads.

Signed-off-by: YDMsama <ydmsama@gmail.com>
@dxsup
Copy link
Member

dxsup commented Aug 16, 2023

We should close the channel and stop the goroutine when shutting down the analyzer.

… and stop the goroutine when shutting down the analyzer

Signed-off-by: YDMsama <ydmsama@gmail.com>
YDMsama and others added 5 commits August 17, 2023 19:38
…_size to the configuration files

Signed-off-by: YDMsama <ydmsama@gmail.com>
…_size to the configuration files

Signed-off-by: YDMsama <ydmsama@gmail.com>
@dxsup dxsup merged commit 0c30aaa into KindlingProject:main Aug 17, 2023
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.

2 participants