You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to make the websocket send a message to all load balance instances?
hello how are you?
I use adonis with PM2 and NGINX .. I am using a Loadbalance as follows:
_
upstream stream_backend {
least_conn;
server 127.0.0.1:3000;
server 127.0.0.1:3001;
server 127.0.0.1:3002;
server 127.0.0.1:3003;
server 127.0.0.1:3004;
server 127.0.0.1:3005;
server 127.0.0.1:3006;
server 127.0.0.1:3333;
}
server {
listen 80;
server_name subem.rio;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
The problem is that the websockets packages are not delivered, everything works perfectly, I just have this problem to distribute the packages in all instances on different ports
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How to make the websocket send a message to all load balance instances?
hello how are you?
I use adonis with PM2 and NGINX .. I am using a Loadbalance as follows:
_
_
and instead of using cluster mode I create multiple instances in fork mode like this:
The problem is that the websockets packages are not delivered, everything works perfectly, I just have this problem to distribute the packages in all instances on different ports
I've read the following topics without result:
adonisjs/adonis-websocket#58
Ruby184/adonis-websocket@f4c7150
adonisjs/discussion#51
adonisjs/discussion#51
everything is working correctly just the web socket that is not delivered on all ports :/
can anybody help me?
Beta Was this translation helpful? Give feedback.
All reactions