Questions tagged [load-balancing]

Load balancing deal with the techniques involved on using multiple systems to deal with high demands, balancing the load between those multiple systems. Questions deal with networking and server load balancing, using dedicated hardware or not.

Load balancing is a group of techniques used to ensure that loads are spread between multiple systems. The term is used on networking and server environments, with similar results.

Network load balancing involves using multiple connections or links to spread speed or high demand between those connections. That can be done on backbone links, carrier internet links or even from servers to switches to provide more speed using link sharing.

Server load balancing utilizes hardware (hardware load balancers) or software (software load balancers) to spread the requests destined for a domain or system between various servers behind those load balancers (often named backends). Load balancing ensures that high performance and scalability can be achieved by addition of servers.

2747 questions
16
votes
3 answers

How to setup HAProxy with failover?

I understand that, to get failover on an HAProxy load balancing setup, you need two machines running HAproxy (and route it to several webserver instances). But in this case, say abcd.com, how do we split/route this traffic to 2 IP addresses instead…
mixdev
  • 383
  • 2
  • 3
  • 10
15
votes
2 answers

What algorithm does Amazon ELB use to balance load?

I found this in the official ELB documentation By default, a load balancer routes each request independently to the application instance with the smallest load. but an article on Newvem says that ELB supports only Round Robin…
kn330
  • 837
  • 1
  • 7
  • 19
15
votes
7 answers

Wordpress Installation on Two Servers - Loadbalancing

I have to install wordpress (One Blog, one domain, for e.g. mycompany.com/blog) on two servers sharing one database on a different server, these two servers are behind a loadbalancer and the db would be on another server. We are planning this way…
Mutahir
  • 2,357
  • 2
  • 32
  • 42
14
votes
3 answers

Install AWS SSL Certificate to EC2 instance without load balancer

I'm new with AWS and facing some confusion with ACM SSL certificate installation to an EC2 instance. Is it possible to install the certificate without using ELB or Cloudfront. I don't need load balancer because the app is running on a single…
14
votes
2 answers

Kubernetes - can I avoid using the GCE Load Balancer to reduce cost?

I'm deploying a Kubernetes cluster on GCE using Gitlab-CI. I'd like to keep the cost to a minimum - here's my current setup: Nodes run on 3 f1-micro instances A system pod running Traefik configured with ServiceType LoadBalancer Wildcard dns…
14
votes
3 answers

rewrite http to https with ngnix behind load balancer

I'm using a Rackspace load balancer which enables me to set up my ssl key/pem inside of the admin panel. Everything works fine, I can use both http and https protocols. But if I try to redirect http to https using: server{ listen *:80; …
jwerre
  • 768
  • 3
  • 12
  • 26
14
votes
3 answers

What is the downside to sticky sessions with load balancers?

We have a web farm of IIS7 machines which work great. In front of them is an F5 Big-IP hardware load balancer, also working fine :) (source: www.f5.com) Currently we're using an ASP.NET State Service to handle our OutProc state. This is required…
Pure.Krome
  • 6,508
  • 18
  • 73
  • 87
14
votes
3 answers

How do you create a zone apex alias that points to a Elastic Load Balancer in the Route 53 GUI?

I created aliases for my domain name's zone apex using the ELB CLI as described in Elastic Load Balancing Developer Guide. I also added a AAAA record using the --rr-type AAAA flag, which is not described in the guide. The Route 53 GUI is populated…
Jeff Loughridge
  • 1,074
  • 2
  • 7
  • 18
14
votes
4 answers

RequestHeader with Apache environment variable

I have Apache set up as a load balancer. I wanted to make apache set the X-Forwarded-Proto header, but this doesn't work: RequestHeader set X-Forwarded-Proto "%{SERVER_PROTOCOL}e" The header gets set to null. Any idea why?
John Crenshaw
  • 161
  • 1
  • 1
  • 5
14
votes
1 answer

Basic Weight Questions with HAProxy

Do weights assigned to servers only effect the balance within that particular backend? When implementing weights for the first time, if I give all the servers in a backend the same number, would that be the same as before when there we no…
Kyle Brandt
  • 83,619
  • 74
  • 305
  • 448
14
votes
1 answer

HAProxy - forward to a different web server based on URI

I have an HTTP farm with the following configuration: listen webfarm 10.254.23.225:80 mode http balance roundrobin cookie SERVERID insert option httpclose option forwardfor option httpchk HEAD /check.txt…
grateful.dev
  • 378
  • 1
  • 2
  • 8
13
votes
6 answers

Windows replacement for HAProxy

It does not appear that there is a similar question to this already posted, so I will go ahead and ask. I am working on a project that could benefit from having two - four servers handling incoming requests to a backend webservice. The service does…
GrayWizardx
  • 233
  • 1
  • 2
  • 6
13
votes
2 answers

HAproxy health check for https backend

I have haproxy configuration that works perfect for vault server in the backend with http configuration and it load balance based on unsealed and active vault server using 200 OK code. This works for http. But we make everything to be https (tls)…
Jayabalan Bala
  • 311
  • 1
  • 2
  • 8
13
votes
8 answers

Load balancing Apache on a budget?

I am trying to get my head around the concept of load balancing to ensure availability and redundancy to keep users happy when things go wrong, rather than load balancing for the sake of offering blistering speed to millions of users. We're on a…
Industrial
  • 1,579
  • 6
  • 24
  • 37
12
votes
1 answer

AWS Fargate + Application Load Balancer SSL Termination

I'm trying to configure ECS Fargate behind an Application Loader Balancer (ELBv2), and I would like to terminate the TLS/SSL connections on the ALB, and send HTTP traffic (port 80) to the Fargate images, which listen on port 80. This is the diagram…