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
7
votes
4 answers

Load balancing MySQL using HAProxy: Got an error reading communication packets?

I've set up load balancing MySQL slaves using HAProxy via a xinetd. 2 load balancers shared a virtual IP that is managed by Pacemaker: crm configure show: node SVR120-27148.localdomain node SVR255-53192.localdomain primitive failover-ip…
quanta
  • 51,413
  • 19
  • 159
  • 217
7
votes
1 answer

Utilize two gateways on the same network same interface with load balancing

My setup is two ISPs on a single interface and single network. I can either set my default gateway to 192.168.0.1 or 192.168.1.250 and either work. Edit: Netmask (as noticed in the comment) is 255.255.254.0 - as I said, they are on the same…
RushPL
  • 169
  • 1
  • 6
7
votes
2 answers

nginx proxy_cache: limit parallel requests to a backend

I am using nginx as a reverse proxy to my backend(s). Configuration is pretty basic, e.g. the core is just: upstream myservice { server 127.0.0.1:80; server 123.123.123.123:80; } location / { proxy_pass http://myservice; …
Jeroen Ooms
  • 2,239
  • 8
  • 34
  • 51
7
votes
1 answer

Using HAProxy, matching root URL only in ACL

Using HAProxy, I want to create the following setup: All requests except root (/), /articles and /blogs go to server1 All requests for root (/), /articles and /blogs go to server2 I can't figure out how to match root without relying on setting…
michaelward82
  • 251
  • 2
  • 7
7
votes
1 answer

Poor load balancer performance on rackspace and centos

I am load testing different options for load balancing, and am getting poor results from Nginx, haproxy, and varnish. I have one 4GB load balancer at Rackspace, hitting 4x1GB app servers. I'm hitting a url called "/slow" which deliberately waits…
Sean Clark Hess
  • 273
  • 3
  • 13
7
votes
4 answers

Load balanced Drupal servers: a good way to share data among the servers?

I'm trying to get an overview of how i would go about creating a load balanced web server setup. Setting up the actual load balancer and adding two or more web servers seems fair enough. However, I can't decide what the best setup for files would…
sbrattla
  • 1,578
  • 4
  • 28
  • 52
7
votes
1 answer

linux multipath routing load balance

I would like to know how to load balance two Business DLS links which have fixed IPs. I believe it would look something like this: ip route add default scope global \ nexthop via gatewayDLS1 dev interface1 weight 1 \ …
user52883
  • 201
  • 2
  • 2
7
votes
2 answers

Load Balancing Best Practices for Persistence

We run a web application serving up web APIs for an increasing number of clients. To start, the clients were generally home, office, or other wireless networks submitting chunked http uploads to our API. We've now branched out into handling more…
dmourati
  • 25,540
  • 2
  • 42
  • 72
7
votes
2 answers

haproxy httpchk multiple check on backend

is it possible to check two conditions on one backend? example backend web-static option httpchk GET /path/alive.php HTTP/1.1\r\nHost:\ www1.domain.com option httpchk GET /path2/alive.php HTTP/1.1\r\nHost:\ www1.domain.com …
Elgreco08
  • 228
  • 3
  • 4
  • 16
7
votes
2 answers

Multiple vCPUs or multiple identical VMs, which is better?

I am looking to upgrade one of our servers, an 8 core server running VMware Server 2. The VMs it runs are mostly web, file, and email servers; specifically, it runs three webservers, 2 email/file servers, and a few Jabber/XMPP Servers. When we…
Josh
  • 9,190
  • 28
  • 80
  • 128
7
votes
3 answers

Is it possible to make redundancy on HAProxy server?

I am going to use HAProxy as a load balancer that will balance requests on 3 application servers. But what if balancer server (HAProxy) fails at some point? I was thinking of cloning the first balancer, so if the main one fails the other will take…
wael34218
  • 321
  • 2
  • 5
  • 15
7
votes
6 answers

Linux equivalent of Windows NLB

With Windows, we can setup load balancing for arbitrary IP services just by installing NLB and selecting which nodes we want in the cluster. It does some MAC address changing, then has algorithms to decide which node handles an incoming request. Is…
MichaelGG
  • 1,739
  • 8
  • 25
  • 30
7
votes
1 answer

How do I scale my EC2 instance?

I'm very new to server configurations and Linux in general, so please bear with me: I have a small EC2 instance running a LAMP server on Ubuntu 10.04 LTS. I'm completely baffled as to how I would scale up to meet traffic demands if I need it. Can I…
Calvin
  • 403
  • 1
  • 4
  • 15
7
votes
3 answers

how to go about scaling a web-application?

I am primarily a web-application developer, and I do not know much about scaling/scalability techniques. My application is written in Python, using Django; a fairly standard setup. I currently use Apache 2.2 for my webserver, and MySQL for my…
phoenix24
  • 179
  • 1
  • 5
7
votes
5 answers

Load balancing and HTTPS strategies

I am faced with the following problem: Servers get saturated since current load balancing strategy is based on client IP. Some corporate clients access our servers from behind large proxies so all clients appear with same IP to our load balancer. I…
Dan
  • 173
  • 1
  • 6