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

Balance all subscribers between CPU cores #311

Open
yaroslav-phokus opened this issue May 30, 2024 · 3 comments
Open

Balance all subscribers between CPU cores #311

yaroslav-phokus opened this issue May 30, 2024 · 3 comments

Comments

@yaroslav-phokus
Copy link

We have multiple channels. Some of them have from 500 to 1000 subscribers, others have many less.
Thus some subscribers of highloaded channels suffer from delays.
I wonder whether there are some way to balance CPU capabilities not only between channels, but between subscribers to have equal number of subscribers distributed among each CPU?

Maybe there's some kind of configuration to speed up delivery?

Thanks!

@sunnychun
Copy link

sunnychun commented May 30, 2024 via email

@wandenberg
Copy link
Owner

Hi @yaroslav-phokus inside the module we don't have control of in which process the user was connected to, this is something lower level.
On top of my knowledge, what you can try to improve is the affinity between the Nginx processes and the cores, and then the distribution of connections per process, something like the accept_mutex
These should improve the distribution optimizing the deliver.

@yaroslav-phokus
Copy link
Author

Hi @wandenberg , thanks, will try.

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

No branches or pull requests

3 participants