Welcome! Log In Create A New Profile


Transmit websockets to a definite worker

Posted by avovana 
Transmit websockets to a definite worker
September 27, 2023 04:58AM
Reload makes new workers. Workers are expensive. Reload can happen very frequently.
In case of proxying websockets, they can be in every worker. Worker can not be shutdown because websocket connections are alive.
After few reloads there are many workers and OOM killer comes closer. So we need to kill workers by ourself. It cause websockets reconnection. That is bad for clients.

It would be great to have opportunity to transmit/assign websocket connection to a specific worker/number of workers. So reload can shutdown rest of workers and resources will be reused.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 286
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready