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

google cloud http(s) load balancer returning 502 despite healthy backend service

I've got a GCE http(s) load balancer configured to direct traffic to 2 backends: - the default backend - a second backend with a separate host/path rule (:/*) Both backends exist on the same instance group - a container cluster running two…
12
votes
6 answers

Best way to load balance across multiple static file servers for even an bandwidth distribution?

First off, I'll explain my situation to you. I'm running a fairly popular website as a side project, so I can't really invest a ton of money into it. I currently have just one server with HAProxy in the front sending out normal requests to Apache,…
Alan
  • 338
  • 1
  • 3
  • 10
12
votes
3 answers

How can I load-balance a load balancer?

I'm about to convert a single-server single-database web application into a physically distributed high-available configuration with servers on two physical locations (for now). Now, obviously, I need a load balancer (more like a reverse proxy in…
12
votes
3 answers

Should Nginx be at the front of HAProxy or opposite?

I have little experience in web site infrastructural architecture design. I know it might be situation specific. The web site is supposed to: 1) Need HTTPS support for some page (e.g. login page) while others are just HTTP page. 2) Need multiple web…
Morgan Cheng
  • 2,114
  • 2
  • 16
  • 13
12
votes
5 answers

How to load-balance SQL Server 2008 for high-usage ASP.NET applications?

Imagine that you have a successful web application that uses ASP.NET and IIS 7. It generates many calls to a SQL Server 2008 database, and is expected to be available to the public with 99.9% uptime (downtime of 8 hours, 45 minutes per year). Our…
Yakov-MIK
  • 123
  • 1
  • 1
  • 5
11
votes
1 answer

How to design/ensure high-availability of web servers?

I have been given a dedicated server by 1&1 internet, which has two hard drives in a RAID1 configuration. I expected this would be good enough as if one disk fails, the other can take over until the damaged one is replaced. However on two ocassions…
11
votes
1 answer

Direct several subdomains to a single backend with haproxy

I'm using haproxy to direct route for several applications running on a single server. For one of the domains in use there are several dozens of subdomains that should be directed to one of a few applications. Currently, I list all of those…
Hubert OG
  • 225
  • 1
  • 2
  • 6
11
votes
8 answers

View Current State of Keepalived

Is there a way to view the current state (Master/Backup) using a command line inside a server instance? Cheers
Ben
  • 253
  • 1
  • 4
  • 13
11
votes
6 answers

HAproxy 503 Service Unavailable No server is available to handle this request

I'm new to this load balancing scenario and I'm being tasked to figure out how to make this load balancing works. My environment: Centos 6.4 64 Bit Webserver: Lighttpd All running in ESXI virtual IP: 192.168.1.6 LB1: 192.168.1.4 LB2:…
Le Dude
  • 381
  • 2
  • 6
  • 14
11
votes
5 answers

haproxy - pass original / remote ip in tcp mode

I've got haproxy set up with keepalived for load balancing and ip failover of a percona cluster, and since it works great I'd like to use the same lb / failover for another service/daemon. I've configured haproxy this way: listen my_service…
Vito Botta
  • 327
  • 1
  • 7
  • 14
11
votes
7 answers

How can I balance incoming web traffic amongst N apache servers?

I am looking to use something like Heartbeat/Squid/Varnish/etc to balance the amount of incoming traffic amongst the internal apache instances. This would have to be software and not hardware as all my stuff is run on VPS. I don't have a lot of…
Jackie
11
votes
2 answers

hardware recommendations for HAProxy for a small or medium traffic site

I am interested in setting up HAProxy for use as a load balancer for a set of small traffic web applications. The use is growing and might become medium sized in the near term (6 months or so). Mainly we are looking balance load becuase some…
MikeJ
  • 1,381
  • 4
  • 13
  • 24
10
votes
4 answers

Load balancing using IIS7 request routing and load balancing module

Microsoft has a lot of documentation about their somewhat new load balancing and request routing module for IIS7 located here: http://blogs.iis.net/bills/archive/2009/02/16/iis7-request-routing-and-load-balancing-module-released.aspx, but I'd like…
Geoff Dalgas
  • 2,476
  • 5
  • 31
  • 32
10
votes
2 answers

alert when a server is out of load balancer

We have a number of sites in a number of environments. Many of the environments are load balanced with two web servers (and in some cases two app servers). Twice in the past two months we've run into a situation in which a server was inadvertently…
mhenry1384
  • 535
  • 6
  • 15
10
votes
2 answers

How to load balance sftp instances on AWS

I like to know is it possible to load balance sftp servers in AWS. I have 2 servers, and each of my servers are using s3fs-fuse to mount the same S3 bucket onto a mount point. Both of my ec2 instances are able to read/write to their mount points,…