Welcome! Log In Create A New Profile


Upstream server stickiness for clients when loadbalancing different connection types

Posted by spaace 

Thanks for reading.

I have an application that needs to be reverse proxied & load balanced

The reverse proxying was achieved quite easily but iam not sure how the load balacing will work due to a complication that we have.

The problem is that the application needs to be accessed via websocket + the HTTP API it supports and a client should ensure they are connected to the same physical server for both. Since the websocket and HTTP API are served from different server applications, they have different ports.

How can Nginx rules be written such that the HTTP API goes to the same upstream physical server for both types of connections (until, that server fails ofcourse).

Any help would be appreciated. Thanks in advance

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 84
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready