Questions tagged [load-balancing]

The term load balancing is used to describe technology that is used to evenly distribute work across multiple nodes within a network.

Load balancing is a computer networking method for distributing workloads across multiple computers or a computer cluster, network links, central processing units, disk drives, or other resources. Successful load balancing optimizes resource use, maximizes throughput, minimizes response time, and avoids overload. Using multiple components with load balancing instead of a single component may increase reliability through redundancy. Load balancing is usually provided by dedicated software or hardware, such as a multilayer switch or a Domain Name System server Process.

5217 questions
33
votes
6 answers

What might be causing the "The client disconnected" ASP.NET exception?

My .NET 3.5 application sporadically throws the following exception System.Web exception: The client disconnected Why is this exception occurring? My application is running on a load balanced Windows Server 2003 IIS 6.0 server.
Michael Kniskern
  • 24,792
  • 68
  • 164
  • 231
31
votes
3 answers

Dynamic wildcard subdomain ingress for Kubernetes

I'm currently using Kubernetes on GKE to serve the various parts of my product on different subdomains with the Ingress resource. For example: api.mydomain.com, console.mydomain.com, etc. ingress.yml (current): apiVersion: extensions/v1beta1 kind:…
31
votes
1 answer

Proxy TCP stream (MySQL and Redis) with Nginx

I read about Nginx Fabric Model and it brings my attention to reconfigure how an application communicates to MySQL and Redis. If local Nginx instance can proxy HTTP traffic efficiently and fast, now it can also proxy TCP without worrying about the…
Anatoly
  • 15,298
  • 5
  • 53
  • 77
30
votes
1 answer

How do websocket connections work through a load balancer?

Forgive my ignorance as my experience with load balancers and websockets are limited. I'm trying to understand how a client can connect to a cluster of servers that sits behind a load balancer through websockets. My understanding of load balancers…
bli00
  • 2,215
  • 2
  • 19
  • 46
30
votes
1 answer

What is pass-through load balancer? How is it different from proxy load balancer?

Google Cloud Network load balancer is a pass-through load balancer and not a proxy load balancer. ( https://cloud.google.com/compute/docs/load-balancing/network/ ). I can not find any resources in general on a pass through LB. Both HAProxy and…
Mohit Gupta
  • 649
  • 1
  • 7
  • 15
30
votes
5 answers

Avoid nginx decoding query parameters on proxy_pass (equivalent to AllowEncodedSlashes NoDecode)

I use nginx as a load balencer in front of several tomcats. In my incoming requests, I have encoded query parameters. But when the request arrives to tomcat, parameters are decoded : incoming request to nginx: curl -i…
Jean-Philippe Caruana
  • 2,617
  • 4
  • 25
  • 47
28
votes
2 answers

Sticky sessions on Kubernetes cluster

Currently, I'm trying to create a Kubernetes cluster on Google Cloud with two load balancers: one for backend (in Spring boot) and another for frontend (in Angular), where each service (load balancer) communicates with 2 replicas (pods). To achieve…
28
votes
3 answers

EC2. Load balancer. At least two subnets must be specified

I'm trying to create and configure Load Balancer. The Availability Zones section has only one subnet and one zone for me. I faced error: At least two subnets must be specified. Simple question - what should I do? thanks.
28
votes
2 answers

How load balancer works in RabbitMQ

I am new to RabbitMQ, so please excuse me for trivial questions: 1) In case of clustering in RabbitMQ, if a node fails, load shift to another node (without stopping the other nodes). Similarly, we can also add new fresh nodes to the existing cluster…
Pragmatic
  • 3,093
  • 4
  • 33
  • 62
27
votes
12 answers

What is the best library for Java to grid/cluster-enable your application?

This is the ability to run your application on a cluster of servers with the intent to distribute the load and also provide additional redundancy. I've seen a presentation for GridGain and I was very impressed with it. Know of any others?
Sarel Botha
  • 12,419
  • 7
  • 54
  • 59
27
votes
6 answers

Elastic Load Balancing both internal and internet-facing

We are trying to use Elastic Load Balancing in AWS with auto-scaling so we can scale in and out as needed. Our application consists of several smaller applications, they are all on the same subnet and the same VPC. We want to put our ELB between one…
engma
  • 1,849
  • 2
  • 26
  • 55
27
votes
10 answers

Algorithm to split an array into P subarrays of balanced sum

I have an big array of length N, let's say something like: 2 4 6 7 6 3 3 3 4 3 4 4 4 3 3 1 I need to split this array into P subarrays (in this example, P=4 would be reasonable), such that the sum of the elements in each subarray is as close as…
Renoa
  • 385
  • 1
  • 4
  • 10
27
votes
1 answer

Why are some websites spread across www2, www3 sub-domains whilst others manage scaling without it?

I know it's to do with having a variety of load balancing servers, but why do some sites make use of differently named "www" sub domains (www2.somesite.com, www3.somesite.com etc) where as other can be perfectly massive without doing this - ie all…
Ray
  • 3,468
  • 8
  • 26
  • 27
26
votes
1 answer

Redirect users to the nearest server based on their location without changing url

This is my case: I have 6 servers across US and Europe. All servers are on a load balancer. When you visit the website (www.example.com) its pointing on the load balancer IP address and from their you are redirect to one of the servers. Currently,…
jQuerybeast
  • 14,130
  • 38
  • 118
  • 196
26
votes
3 answers

What are the differences between Network and HTTP(s) load balancer in GCP

GCP provides two load balancers namely Network and HTTP(s) where the former works on layer 4 and the later works on layer 7. There is also a documentation which states that even HTTP traffic can be load balanced by a network load balancer. This…