load-balancing
Avoid nginx decoding query parameters on proxy_pass (equivalent to AllowEncodedSlashes NoDecode)
I finally found the solution: I need to pass $request_uri parameter : location / { proxy_pass http://tracking/webapp$request_uri; } That way, characters that were encoded in the original request will not be decoded, i.e. will be passed as-is to the proxied server.
How do websocket connections work through a load balancer?
Load balancer and reverse proxy have diffrent use case. Main use case of the load balancer is to distribute the load among node in a group of the server to manage the resource utilisation of each node One of the use cases of a reverse proxy is to hide server meta information (ip,port etc..) from … Read more
What might be causing the “The client disconnected” ASP.NET exception?
The vbdork.net domain seems to now be defunct. In searching on this error, I found several references to this article. So I found a google cached version of it and am now posting it here for reference. The original URL was: http://vbdork.net/post/2009/02/10/The-client-disconnected.aspx You get the message The client Disconnected. You’re likely to sporadically get this … Read more
How is load balancing done in Docker-Swarm mode
when I write those apps which IP:PORT combination do I use? Is it any of the worker node IP’s running these services? You can use any node that is participating in the swarm, even if there is no replica of the service in question exists on that node. So you will use Node:HostPort combination. The … Read more
How do I set up global load balancing using Digital Ocean DNS and Nginx?
The Goal: Offer highly-available service to my users by routing all connections to the closest ‘cluster’ of servers in SFO, NYC, LON, and eventually Singapore. The global-balancing layer then routes the request to theleast connected server… If I’m reading your configuration correctly, you’re actually proxying from your global balancers to the balancers at each region. … Read more
Proxying WebSockets with TCP load balancer without sticky sessions
I think what we need to understand in order to answer this question is how exactly the underlying TCP connection evolves during the whole WebSocket creation process. You will realize that the sticky part of a WebSocket connection is the underlying TCP connection itself. I am not sure what you mean with “session” in the … Read more