Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Upstream server stickiness for clients when loadbalancing different connection types

$
0
0
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

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>