Closed leverice closed 4 years ago
Hi @leverice the distribution of requests across Nginx workers is done by the Ngnix, not something that the module can control. You can look for Nginx configurations like CPU affinity and others connected to this distribution. ;)
@wandenberg Thanks! I also suspected this but wanted to be sure. So, basically, the worker that got the initial websocket request will be responsible for the subscriber, right?
For those who has the same issue: look at reuseport directive.
Yes. The worker with the connection (doesn't matter if WebSocket or long polling or ... ) will be responsible for the subscriber.
My nginx is running in a docker swarm. I realized recently that all (or almost all) of subscribers are at the same worker. Why is it so? How are the subscribers distributed among workers?
Output from push_stream_channels_statistics: `
`