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
14
votes
5 answers

Zero downtime deployment for Java apps

I am trying to build the very lightweight solution for zero downtime deployment for Java apps. For the sake of simplicity lets think that we have two servers. My solution is to use: On the "front" -- some load balancer (software) - I am thinking…
alexeypro
  • 3,633
  • 7
  • 36
  • 49
14
votes
3 answers

Log client's "real" IP address in Docker Swarm 1.12 when accessing a service

I have nginx container running as a service in Docker Swarm inside user created overlay network. Both created with: docker network create --driver overlay proxy docker service create --name proxy --network proxy -p 80:80 nginx When accessing nginx…
eskp
  • 193
  • 1
  • 7
14
votes
1 answer

HAProxy Loadbalancing TCP traffic

Using HAProxy, I'm trying to (TCP) load balance Rserve(a service listening in TCP socket for calling R scripts) running at port 6311 in 2 nodes. Below is my config file. When I run HAProxy, its statting without any issues. But when I connect to the…
Anand
  • 9,672
  • 4
  • 55
  • 75
14
votes
6 answers

"Work stealing" vs. "Work shrugging"?

Why is it that I can find lots of information on "work stealing" and nothing on "work shrugging" as a dynamic load-balancing strategy? By "work-shrugging" I mean pushing surplus work away from busy processors onto less loaded neighbours, rather than…
14
votes
3 answers

How to implement a round-robin circular list and count access requests of an element?

Scenario: For a list that have 3 elements: [A, B, C] You can circular access it as many times as you want. And there is an additional counting function records access count of each element. For example, if accessing it 7 times, should return: [A,…
Wuaner
  • 929
  • 2
  • 14
  • 31
14
votes
5 answers

AWS Elastic Beanstalk environment with multiple Load Balancers

I have the following situation: I have 1 Rails App that has 2 domains, each of these domains has multiple/dynamical subdomains. This app is in AWS using a load-balanced Elastic Beanstalk. What i need is that those 2 domains that points to my single…
14
votes
2 answers

How to tell uWSGI to prefer processes to threads for load balancing

I've installed Nginx + uWSGI + Django on a VDS with 3 CPU cores. uWSGI is configured for 6 processes and 5 threads per process. Now I want to tell uWSGI to use processes for load balancing until all processes are busy, and then to use threads if…
raacer
  • 5,302
  • 3
  • 27
  • 46
14
votes
1 answer

How to lock a object when using load balancing

Background: I'm writing a function putting long lasting operations in a queue, using C#, and each operation is kind of divided into 3 steps: 1. database operation (update/delete/add data) 2. long time calculation using web service 3. database…
jay2014
  • 151
  • 1
  • 5
14
votes
2 answers

How to use S3 as static web page and EC2 as REST API for it together? (AWS)

With AWS services we have the Web application running from the S3 bucket and accessing the data through the REST API from Load Balancer (which is set of Node.js applications running on EC2 instance). Currently we have specified URL's as…
14
votes
6 answers

Pushing to multiple EC2 instances on a load balancer

I am attempting to figure out a good way to push out a new commit to a group of EC2 server instances behind a ELB (load balancer). Each instance is running Nginx and PHP-FPM I would like to perform the following workflow, but I am unsure of a good…
Jonathan Coe
  • 1,485
  • 4
  • 18
  • 36
14
votes
5 answers

Is it legitimate to use dropbox as file storage for my site?

I am approaching the limits of my hosting plan. I doubled it once from 2 to 4 GB and my site (a popular woodworking community in Hebrew) is getting close to using the disk space available for the images people are uploading. I was wondering if it…
Moshe Eshel
  • 708
  • 7
  • 19
13
votes
2 answers

Accessing AWS EC2 instances through ELB

I'm trying to set up two instances under an elastic load balancer, but cannot figure out how I'm supposed to access the instances through the load balancer. I've set up the instances with a security group to allow access from anywhere to certain…
Svend Hansen
  • 3,277
  • 3
  • 31
  • 50
13
votes
3 answers

Programmatically add nodes to a load balancer like Haproxy?

I'm very sure this problem has been solved, but I can't find any information anywhere about it... How do sysadmins programmatically add a new node to an existing and running load balancer ? Let's say I have a load balancer running and already…
João Pinto Jerónimo
  • 9,586
  • 15
  • 62
  • 86
13
votes
13 answers

Architecture recommendation for load-balanced ASP.NET site

UPDATE 2009-05-21 I've been testing the #2 method of using a single network share. It is resulting in some issues with Windows Server 2003 under load: http://support.microsoft.com/kb/810886 end update I've received a proposal for an ASP.NET website…
frankadelic
  • 20,543
  • 37
  • 111
  • 164
13
votes
3 answers

AWS Pass traffic from NLB to an ALB?

I am trying to pass incoming traffic from amazon's Network Load Balancer to Application Load Balancer, I am using NLB since it has an Elastic IP attachment and I want it to serve as a proxy for the ALB. is that even possible?
Broshi
  • 3,334
  • 5
  • 37
  • 52