Welcome! Log In Create A New Profile

Advanced

Upstream server stickiness for clients when loadbalancing different connection types

Posted by spaace 
Greetings,

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

Rgds
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 253
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready