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

[master] Make reactor engine less blocking the EventPublisher #66158

Closed

Conversation

vzhestkov
Copy link
Contributor

What does this PR do?

The reactor engine in some cases could cause blocking on reading the events from EventPublisher so it has to hold the events until they will be retrived by the engine.

This change improves the way of handling the events by the reactor engine by pushing more work to the thread pool which is already available inside the engine, in this case more work is handled with the distinct thread instead of performing this work with the main thread of the reactor engine.

Previous Behavior

In some cases could cause some growth of the memory consumption with EventPublisher as it has to hold the events to be consumed by the stream from reactor engine.

New Behavior

The events from the stream from EventPublisher are handled faster.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes/No

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@vzhestkov vzhestkov requested a review from a team as a code owner February 29, 2024 10:50
@vzhestkov vzhestkov requested review from whytewolf and removed request for a team February 29, 2024 10:50
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title Make reactor engine less blocking the EventPublisher [master] Make reactor engine less blocking the EventPublisher Feb 29, 2024
@vzhestkov vzhestkov force-pushed the make-reactors-engine-less-blocking branch from 329a4c4 to abaf59c Compare February 29, 2024 11:01
@whytewolf
Copy link
Collaborator

This change needs tests and a changelog.

@vzhestkov vzhestkov force-pushed the make-reactors-engine-less-blocking branch from abaf59c to c1dba43 Compare August 5, 2024 09:34
@vzhestkov
Copy link
Contributor Author

@whytewolf sorry, I've missed the notification. Not sure about the test is it good enough, but the idea is to move the process to the separate thread as soon as possible.

@whytewolf
Copy link
Collaborator

@vzhestkov hey there. unfortunately i don't really do much with salt anymore. I left the core team. I am tagging @dwoz in reviewing this.

@vzhestkov
Copy link
Contributor Author

Seems this change has some negative effect in combination with gitfs. Closing the PR for now.

@vzhestkov vzhestkov closed this Sep 12, 2024
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