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
18
votes
2 answers

Load Balancing (HAProxy or other) - Sticky Sessions

I'm working on scaling out my app to multiple servers, and one requirement is that a client is always communicating with the same server (too much live data is used to allow bouncing between servers efficiently). My current setup is a small server…
Michael Marsee
  • 1,075
  • 2
  • 12
  • 11
18
votes
3 answers

what is difference between www vs www1, www2, www3 etc

Does it mean that user requests directing to the different servers? I usually see it on websites with high traffic. for eg:- https://www.tcs.com/ https://www2.deloitte.com/
Still Questioning
  • 670
  • 2
  • 7
  • 23
18
votes
2 answers

Distributed application - is load balancer single point of failure?

In general, I want to understand in a distributed application - is the load balancer a single point of failure? I am not sure, but this can be an Apache load balancer or on top of that a device/hardware load balancer as provisioned from F5 Network,…
lowLatency
  • 5,534
  • 12
  • 44
  • 70
18
votes
1 answer

SSL and Load Balancing

What affect does SSL have on the way load balancing works? I know that you need to use sticky sessions if you have chosen to not store you session info in the DB or Out of Process but how does that effect SSL?
jquery auth
  • 1,267
  • 1
  • 14
  • 24
18
votes
1 answer

Load Balancing Multiple Django Webservers

I was wondering if anyone had ever implemented multiple Django webservers pointing to a single database, essentially functioning as a single website via load balancing? What software did you use for load balancing? What additional…
theycallmemorty
  • 12,515
  • 14
  • 51
  • 71
18
votes
6 answers

Why am i seeing lots of sockets in CLOSE_WAIT status when webservice stops working?

My java webservice running on Jetty falls over after a period of a few hours and investigation indicate many sockets in CLOSE_WAIT status. Whilst it is working ok there seems to be no sockets in CLOSE_WAIT status but when it goes wrong there are…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
18
votes
4 answers

Using Cloudflare with Amazon EC2 and load balancers

I am running my website on AWS. I have one load balancer for my two web servers. My load balancer doesn't have a static IP address, it has a domain name. I want my traffic to come only via the load balancer. I am using Cloudflare's DNS instead of…
18
votes
3 answers

aws load balancer with no health check? or make it work with non-200 response?

I have a site I am trying to attach to a load balancer that requires Basic Authentication. It fails the health check. I'm guessing this is because instead of returning a 200 it's returning a 401. Similarly, I have another site that is trying to do a…
Jay
  • 26,876
  • 10
  • 61
  • 112
18
votes
3 answers

nginx behind load balancers

I've found at that Instagram share their technology implementation with other developers trough their blog. They've some great solutions for the problems they run into. One of those solutions they've is an Elastic Load Balancer on Amazon with 3…
Navid
  • 485
  • 1
  • 8
  • 25
17
votes
1 answer

Load balance web application

There are load balanced tomcat web servers. Every request could be served by different tomcat server. How could we take care of this while writing code for the j2ee (struts) based web application?
user32262
  • 8,660
  • 21
  • 64
  • 77
17
votes
4 answers

How to auto scale my instance in Amazon EC2?

I just have created Amazon EC2 image and I'm new to this environment. I'm interested in "auto scale" part of Amazon EC2. But I could not find clear guide to find whether I'm using "auto scale" or not and how to auto scale my instance. How can I…
jwchang
  • 10,584
  • 15
  • 58
  • 89
17
votes
2 answers

Network load balancer real life examples?

Even after a lot of googling, I could not find a simple answer to this question. All I could find was it's layer 4 load balancer that can handle millions of requests per second, and support for static/elastic ip. Could someone please give me an…
17
votes
2 answers

AWS Instance Only Allow Traffic From Load Balancer

I have a Load Balancer and Auto-Scaling Group. The Load Balancer sends traffic to my Auto-Scaling Group. I have two instances: Instance 7000 (which is listening on port 7000 and is part of the auto-scaling group and gets its traffic from the load…
17
votes
4 answers

Visual Studio - Publish to multiple locations?

Is there a way to automatically publish a website to multiple locations at once? Our website is load balanced across multiple servers, so when I want to publish I have to do it to each server individually. Thx, Trev
Trev
  • 1,358
  • 3
  • 16
  • 28
17
votes
2 answers

Linux Kernel- task_h_load

I'm trying to understand what happens during the load_balance function. I'm checking version 3.14 but I also took a look at version 4.3 since I was told that the mechanism was changed and a bit more clear in this version. in v3.14 the call is from…
boaz
  • 920
  • 1
  • 13
  • 32