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
1
vote
1 answer

How to prevent HAProxy from ineffectively distributing load using roundrobin algorithm?

We're running web servers behind an EC2 load balancer, and in turn these servers run HAProxy and spread load between work servers. Assuming equal server weights, it seems like the following scenario would play out if EC2 effectively uses a…
ty01
  • 113
  • 6
1
vote
4 answers

Share common web application code to many web servers

What is the best way to share common web application code to many web servers? For example, I have a directory containing web application written in PHP. Now, I have multiple machines that will serve same content, each runs a webserver, load…
Arie K
  • 1,633
  • 5
  • 19
  • 27
1
vote
0 answers

Local load balancing and using cloud services when needed

Suppose a company has a set of web+data servers that are load balanced, but sometimes the application gets a burst that goes beyond server capabilities. This would nicely mitigate the cost of cloud services to only use them when you actually need…
Robert Koritnik
  • 912
  • 5
  • 19
  • 35
1
vote
2 answers

WordPress shows only internal IPs

Yesterday, I set up a WordPress "cluster." Now I have a problem: WordPress and stat-plugins only shows the users as internal IP addresses like 10.0.0.2. My nginx configuration is: upstream backend { #ip_hash; server 10.0.0.3:80; server…
Flo
  • 13
  • 3
1
vote
1 answer

Salt server on 403 error

i have a frontends server with nginx, this serve the static content, and forward by proxy_pass the rest. I have a problem with the backends servers and this return 403 error randomy, this is in another question. For a immediately solution, i want…
Exos
  • 121
  • 5
1
vote
1 answer

I'm being asked to support mapping many SSL keys to one IP but I think it's a bad idea. Am I wrong?

At work, I've been asked to add support for mapping multiple keys to a single (or many even) IP to what is essentially a passive HTTP sniffer. It supports SSL decryption with user-uploaded keys. Currently, it supports a one IP to one key mapping,…
sandroid
  • 1,724
  • 12
  • 16
1
vote
2 answers

AWS - Load balance to different clusters

So I'm using ELB to load balance incoming requests. Is it possibile to make the ELB listen on two ports and, for example, route all the request made to port 80 to a specific set of instances, and route all the other request (to port 443), to another…
Mark
  • 452
  • 5
  • 13
1
vote
1 answer

Elastic Load Balancer + Domain setup

How do I assign the ELB (Elastic Load Balancer) to my domain. Do I need to do it for the main domain (ie. domain.com) or sub domain (www.domain.com). My registrar is godaddy - how I do it? - What's the most recommended way? I also later want to…
Liron Harel
  • 431
  • 1
  • 4
  • 13
1
vote
0 answers

Bad request 400 Error when using parent cache node

I'm trying to design a load balancing system with a parent cache. I have 2 Child Cache servers with ARR and Network load balancing features installed. (vServer2008-1: 10.7.10.90, vServer2008-3:10.7.10.91). When i setup the Network Load Balancing…
syloc
  • 151
  • 1
  • 2
1
vote
2 answers

HAProxy with 'backup' failure

I have a simple configuration of 2 MySQL being load balanced by HAProxy. For an unfortunate reason I need to use them in Passive\Active mode. So I thought I'd configure one DB as 'backup' and go to sleep. But I was wrong. Whenever I add the…
A.RG
  • 81
  • 1
  • 2
  • 4
1
vote
3 answers

Load balancer for URL-hash based balancing?

What is an open source load balancer that allows for hash based balancing? I would like to do hash based load balancing of a URL but first remove the user specific arguments from the URL. Basically want to increase Varnish's cache performance by…
CarpeNoctem
  • 2,437
  • 4
  • 23
  • 32
1
vote
1 answer

Disable worker with nginx?

we'd like to migrate to nginx and want to have the same behaviour as we have at the moment: We're using the following load balancing setup: Apache mod_jk with AJP connected to JBoss 4.2.3 workers. Installed JKStatusManager to configure worker…
Marcel
  • 150
  • 10
1
vote
2 answers

Scaling Python CGI scripts

I have Apache running on a quad-core Ubuntu server on a 384kbps ADSL. Files are uploaded by users via a web-form and processed by various Python programs running as CGI scripts. Some scripts are CPU intensive and run at 100% (on one core) for a few…
SabreWolfy
  • 368
  • 1
  • 2
  • 13
1
vote
4 answers

Proper way to load balance a site across two locations

I have discussed a scenario here that our company is using and would like some input if possible. We have a main url for a site, call it "http://www.site.com". At some point during its inception, it was decided that the site will be load balanced…
Lee
  • 13
  • 1
  • 4
1
vote
1 answer

Ideas for adding a second internet connection to existing network?

I have a remote site with a T1 connection tied back to a main location. This provides access to the servers at the main location and also provides internet access via the main location. The problem is that it is becoming too slow and I want to…
Scott Szretter
  • 1,882
  • 11
  • 43
  • 66