Hi everybody,
If passenger is running with 1 instance, every works fine.
However if I start passenger with "--min-instances" equal to 2 or higher, my websockets are constantly losing connections (and reconnecting). I guess this is based on the face that the load is distributed between the different passenger instances and the websockets do not stick to the same instance?
If that's the case, I found the following regarding sticky session in NGINX (
http://socket.io/docs/using-multiple-nodes/). However it seems to me that the latter is only applicable if the different instances would run on different ports?
Or maybe I'm missing something trivial?
Thanks for any help.
Best,
Tom