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

Load balancing a PHP program to support increasing users?

I have a PHP program that has been written keeping in mind a single server, so there are inherent limitation to how much it can handle. For example, the developer says that his current webhosting service provides him with "50 MySQL connections"…
Dave
  • 599
  • 4
  • 11
  • 20
2
votes
1 answer

Load Balancer sending two requests to web server

In J2EE based web application, We have Load Balancer server which is being hit before user request reaches to web server. For a particular request only, web server is getting two POST request where as user has clicked only ONCE on web page's some…
HIREN011
  • 549
  • 1
  • 7
  • 7
2
votes
0 answers

100% CPU Load on Haproxy and 100% Load on Balanced Servers

2 app servers sit behind a Haproxy server using leastconnections method of load balancing. However every 10-15 seconds, the app servers CPU load will spike from very little to 100%! Haproxy server's load is usually 90-100% on one core. Question: Are…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
2
votes
1 answer

DotNetOpenAuth RelayParty not working on load balanced cluster

We're trying to move an ASP.NET MVC application, which uses DotNetOpenAuth OpenID Version 3.4.1, from a single server web garden to a physical server cluster held behind a hardware load balancer. Our old setup (OpenID RP working): Browser => SHTTP…
2
votes
1 answer

Limiting external connections to a subdomain with .htaccess or similar?

I am hosting a web application that serves static html pages that are refreshed at various intervals. Some as often as every 30 secs. I currently have numerous (hundreds) of unique pages that are accessed via 300 unique subdomains. Some of my…
2
votes
1 answer

Using Nginx to serve static assets from remote rails upstream server

I'm using Nginx as an http load balancer for multiple upstream backend Rails servers using remote TCP connections. They're all hosting the same application and use the same static precompiled assets sitting under the public/assets directory. Now I'm…
Noz
  • 6,216
  • 3
  • 47
  • 82
2
votes
2 answers

Nginx load balance on server with multiple domains

I haven't seen anything related to this topic on Google and since I'm a newbie on Nginx I'd like to ask a question about load balancing: I have a dedicated server currently running Apache with multiple accounts and domains. I'd like to switch to…
simon
  • 33
  • 1
  • 6
2
votes
0 answers

HTTP_HOST not found behind load balancer on EC2

In some requests the $_SERVER['HTTP_HOST'] not exists. I researched on the causes and now I know that this occurs on HTTP 1.0 requests. I have 4 domains in many machines behind a load balancer on AWS EC2 and I don't have a idea how to solve this…
Maykonn
  • 2,738
  • 6
  • 33
  • 51
2
votes
2 answers

Socket.io with AWS elastic load balancer

I haven't really found a good solution to Websocket, socket.io connection with Elastic Load Balancer using Elastic Beanstalk running on node.js. Anyone has a good set up on how to scale node.js with socket.io implementation Here are some…
2
votes
3 answers

Can I specify a different ping path other than index.html in AWS Load balancer

I am setting up a load balancer in AWS cloud. If I specify the ping path as index.html than the load balancer is working fine, But if I specify any other ping path like index.php, than the ec2 instance becomes out of service. If i specify index.html…
Megha Sharma
  • 2,235
  • 8
  • 27
  • 31
2
votes
1 answer

Design of database/ backend to solve this high load demand scenario?

I was asked this question in a interview. The problem statements is this You have a website which handles load of millions of users. You have got a shared database across various load balancing web servers which has got details of coupons in a…
Max
  • 9,100
  • 25
  • 72
  • 109
2
votes
2 answers

Requests going through EC2 load balancer hangs

I have setup a simple proxy on an EC2 instance using Tinyproxy (default config listening/allowing all incoming connections). This works well. If I, for debugging, fill in IP address and the port to proxy settings in my browser, I can brows through…
Niels Kristian
  • 8,661
  • 11
  • 59
  • 117
2
votes
2 answers

How to direct traffic to different servers per geographic location?

If I have servers placed across the globe through AWS, Rackspace, some other cloud, or even bare metal, how do I direct traffic from, say Singapore, to a server instance living in the Asia region? Is it some kind of load balancing, or DNS type…
Albert Lim
  • 311
  • 1
  • 3
  • 8
2
votes
1 answer

HAProxy 1.4 - Don't log 2xx, only log 5xx

Good evening, I'm using HAProxy (ver 1.4.24) as a load balancer for ~3000 requests per second. I am trying to log only 5xx responses, but I am unable to achive that. I am using the following configuration: http://pastebin.com/TsTk9GQE This…
Tomer P
  • 21
  • 3
2
votes
1 answer

load balancing cowboy http servers

how do you load balance identical cowboy http servers in the same cluster considering they have the identical listeners listening to the same port for requests? I don't think the usual round-robin approach for load balancing will work in this…
dnldd
  • 113
  • 1
  • 8