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
10
votes
1 answer

Storm-Kafka multiple spouts, how to share the load?

I am trying to share the task among the multiple spouts. I have a situation, where I'm getting one tuple/message at a time from external source and I want to have multiple instances of a spout, main intention behind is to share the load and increase…
Amol M Kulkarni
  • 21,143
  • 34
  • 120
  • 164
10
votes
15 answers

What load-balancing system do you use in production? What do you think of it?

There are a lot of different systems for balancing load and achieving redundancy in production servers (Not just web servers) Round-robin DNS Linux Virtual Server Cisco Local Director F5 BigIP Windows NLB etc? If you use one of these (or another)…
MarkR
  • 62,604
  • 14
  • 116
  • 151
10
votes
3 answers

Load balance (or http proxy) by the logged in user of a Django app?

What is an efficient way to load balance (or in a sense shard) users of a Django app by their username? I want to flag certain users of the Django app and have them go to a different web server once they are logged in.
MikeN
  • 45,039
  • 49
  • 151
  • 227
10
votes
2 answers

Why should i use a LoadBalancerProbe instead of subscribing to the RoleEnvironment.StatusCheck Event?

I was fiddling with the options azure provides to balance the load between multiple webroles. I found three possible ways to do this. the first would be to do nothing at all and let the default ( round robin) implementation do the job. the second…
Jalatiphra
  • 248
  • 1
  • 10
10
votes
3 answers

NodeJS horizontal scaling

I've been a ruby/php web application developer for quite some time and I'm used to the idea of horizontal scaling of server instances to handle more requests. Horizontal scaling - meaning separate instances of an application sitting behind a…
Casey Flynn
  • 13,654
  • 23
  • 103
  • 194
10
votes
1 answer

AWS Load Balancing a Node.js App on port 3000

I've got a Node.js Express web app that is using the default port 3000 and responds fine on an Ubuntu EC2 instance by elastic ip. I'm trying to setup Load Balancing built into AWS and can't seem to get a good health check to pass Setup 2 ubuntu…
Patrick Kafka
  • 9,795
  • 3
  • 29
  • 44
10
votes
2 answers

AWS Elastic Load Balancer and multiple availability zones

I want to understand how ELB load balances between multiple availability zones. For example, if I have 4 instances (a1, a2, a3, a4) in zone us-east-1a and a single instance d1 in us-east-1d behind an ELB, how is the traffic distributed between the…
mbsheikh
  • 2,501
  • 5
  • 23
  • 33
10
votes
3 answers

Is there a good open source abstract load balancing library for Java?

I'm looking for an open source library that will allow programmatic loadbalancing across a set of calls to nodes of arbitrary form - so no assumptions about HTTP or anything else, just a method call on an object. Ideally it would provide the…
Robert Elliot
  • 1,372
  • 13
  • 20
9
votes
4 answers

When to use load balancing?

I am just getting in to the more intricate parts of web development. This may not be in the best place. However, when is it best to get load balancing for a web project? I understand that it depends on good design/bad design as to how many users you…
Daniel Casserly
  • 3,552
  • 2
  • 29
  • 60
9
votes
4 answers

ASP.Net - Handling session data in a load balanced environment?

How does ASP.Net deal with session data in a load balanced environment? Let's say a user makes multiple requests while navigating through a couple of pages? Do all requests go to the same server in the load balancer? What can I do if they don't all…
aryaxt
  • 76,198
  • 92
  • 293
  • 442
9
votes
3 answers

Handling log and configuration files when load balancing apache

So, I am currently rebuilding my web platform from a single-machine to a cluster of machines, and I will be using Apache load balancing to do this., but I have two questions that I need a good answer to before proceeding. I have Googled and searched…
Sandman
  • 2,323
  • 5
  • 28
  • 34
9
votes
2 answers

Application load balancer vs network load balancer

I am new to AWS. I can't get a clear idea behind ALB vs NLB. Could anyone explain in a simple way?
9
votes
2 answers

Directly accessing Azure workers; bypassing the load balancer

Typically, access to Azure workers is done via endpoints that are defined in the service definition. These endpoints, which must be TCP or HTTP(S), are passed through a load balancer and then connected to the actual IP/port of the Azure machines. My…
David Pfeffer
  • 38,869
  • 30
  • 127
  • 202
9
votes
1 answer

How can I expose a Statefulset with a load balancer?

I currently trying to create a cluster of X pods witch each have a personal persistent volume. To do that I've created a StateFulSet with X replicas and a PersistentVolumeClaimTemplate This part is working. The problem is that it's seem's to be…
yatsukino
  • 379
  • 1
  • 4
  • 13
9
votes
4 answers

GCP Load Balancer: 502 Server Error, "failed_to_connect_to_backend"

I have a dockerized Go application running on two GCP instances, everything works fine when using them with their individual external IPs, but when put through the load balancer, they're either slow to answer or it answers a 502 server error. The…