upstream nlu {
hash $remote_addr consistent;
server 127.0.0.1:5005;
server 192.168.254.18:5005;
}
location /socket.io/ {
proxy_pass http://nlu;
proxy_connect_timeout 200s;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
The client( rasa-voice-interface) is
Vue.use( new VueSocketIO({ debug: true, connection: ‘http://127.0.0.1:17070’, vuex: { store, actionPrefix: ‘SOCKET_’, mutationPrefix: ‘SOCKET_’ } // transports: [‘websocket’] }) );
Now we found something wrong.
- if one of my nlu cluster loss(at this moment,have some client connect) and the client with loss connect until connect timeout and with connect to other healthy server. have any good idea to slove it.
- when my client is mobile app. such as I create a android app and load rasa-voice-interface’s resources. It always loss the connection. but when I use my android browser it’s ok. maybe it’s something wrong with socket.io. Have any one met the same situation or have any idea. Thanks
