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

Why does Elastic Load Balancing report 'Out of Service'?

I am trying to set up Elastic Load Balancing (ELB) in AWS to split the requests between multiple instances. I have created several images of my webserver based on the same AMI, and I am able to ssh into each individually and access the site via each…
jkeesh
  • 3,289
  • 3
  • 29
  • 42
48
votes
13 answers

ERROR 2013 (HY000): Lost connection to MySQL server at 'reading authorization packet', system error: 0

I am getting the following error ERROR 2013 (HY000): Lost connection to MySQL server at 'reading authorization packet', system error: 0 when trying to connect to my MySQL server. What I am doing: I have Master - Slave replication in MySQL that…
Up_One
  • 5,213
  • 3
  • 33
  • 65
47
votes
1 answer

AWS - Stop load balancer

According to free tier I have 750h of load balancer. I would like to try create more than one load balancer. Now I want to stop it in order to avoid waste the free plan. But I don't find any "stop" button.
Ricardo
  • 7,921
  • 14
  • 64
  • 111
47
votes
5 answers

Load Balancing in Amazon EC2?

We've been fighting with HAProxy for a few days now in Amazon EC2; the experience has so far been great, but we're stuck on squeezing more performance out of the software load balancer. We're not exactly Linux networking whizzes (we're a .NET shop,…
Marc Bollinger
  • 3,109
  • 2
  • 27
  • 32
47
votes
3 answers

Can ELB redirect request depending on the URL?

I am trying to set up my application server behind the Amazon Elastic Load Balancer. I am thinking to have one server dedicated for old version, and all other server dedicated for new version. I am thinking to implement this using version id in path…
subhashlg26
  • 993
  • 1
  • 11
  • 25
46
votes
4 answers

How to specify static IP address for Kubernetes load balancer?

I have a Kubernetes cluster running on Google Compute Engine and I would like to assign static IP addresses to my external services (type: LoadBalancer). I am unsure about whether this is possible at the moment or not. I found the following sources…
Marco Lamina
  • 3,326
  • 4
  • 22
  • 22
45
votes
1 answer

Difference between frontend/backend and listen in haproxy

Hopefully a simple question. I apologize if this has been covered before. I'm learning haproxy and overall seems very straightforward and simple. However I am curious what the difference is between using frontend/backend and listen config blocks?…
Al F
  • 703
  • 1
  • 6
  • 11
41
votes
4 answers

Setting a trace id in nginx load balancer

I'm using nginx as a load balancer in front of several upstream app servers and I want to set a trace id to use to correlate requests with the app server logs. What's the best way to do that in Nginx, is there a good 3rd party module for…
danny
  • 10,103
  • 10
  • 50
  • 57
41
votes
8 answers

AWS Load Balancer with a static IP address

I have a set-up running on Amazon cloud with a couple of EC2 Instances running through a load balancer. It is important that the site has a unique(static) IP or set of IPs as I'm plugging in 3rd party APIs which only accept requests made from IPs…
40
votes
1 answer

How to expose multiple port using a load balancer services in Kubernetes

I have created a cluster using the google cloud platform (container engine) and deployed a pod using the following YAML file: apiVersion: extensions/v1beta1 kind: Deployment metadata: name: deployment-name spec: replicas: 1 template: …
Sebastien
  • 505
  • 1
  • 6
  • 15
39
votes
2 answers

Proxying WebSockets with TCP load balancer without sticky sessions

I want to proxy WebSocket connections to multiple node.js servers using Amazon Elastic Load Balancer. Since Amazon ELB does not provide actual WebSocket support, I would need to use its vanilla TCP messaging. However, I'm trying to understand how…
Justin Meltzer
  • 13,318
  • 32
  • 117
  • 182
39
votes
3 answers

Azure VM load balancing vs Traffic Manager

Can anyone explain the distinction between VM load balancing (in the new Azure portal) and the Azure traffic manager (currently only managed from the old portal), and how they interact? As an example, I've created two VMs attached to each other,…
James Crowley
  • 3,911
  • 5
  • 36
  • 65
37
votes
4 answers

How do I set up global load balancing using Digital Ocean DNS and Nginx?

UPDATE: See the answer I've provided below for the solution I eventually got set up on AWS. I'm currently experimenting with methods to implement a global load-balancing layer for my app servers on Digital Ocean and there's a few pieces I've yet…
AJB
  • 7,389
  • 14
  • 57
  • 88
35
votes
2 answers

How is load balancing done in Docker-Swarm mode

I'm working on a project to set up a cloud architecture using docker-swarm. I know that with swarm I could deploy replicas of a service which means multiple containers of that image will be running to serve requests. I also read that docker has an…
Shabirmean
  • 2,341
  • 4
  • 21
  • 34
34
votes
1 answer

Application Load Balancer (ELBv2) SSL pass through

I am trying to configure an AWS Application Load Balancer (vs. a Classic Load Balancer) to distribute traffic to my EC2 web servers. For compliance reasons I need end to end SSL/HTTPS encryption for my application. It seems to me the simplest way…
John R
  • 503
  • 1
  • 5
  • 7