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

Load Balancing between Consumers #54695

Open
DemigodCode opened this issue Apr 22, 2024 · 0 comments
Open

Load Balancing between Consumers #54695

DemigodCode opened this issue Apr 22, 2024 · 0 comments

Comments

@DemigodCode
Copy link
Contributor

Description

We use multiple message consumers.

We don't want the consumers to use all available resources on the system to prevent raising the Load too high.

We achieved this by adding a Event Listener which sleeps if the CPU Load is too high.

My idea:
Add 2 new parameters to the messenger consumer (e.g. max-load, load-refresh-inverall).
Add config parameters to activate the feature and register the event Listener on "WorkerMessageReceivedEvent"

Does this make sense?

Example

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants