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

maxconn limit per backend in haproxy

Our haproxy loadbalancer opens thousands of connections to its backends even though its settings say to open no more than 10 connections per server instance (see below). When I uncomment "option http-server-close" the number of backend connection…
Roman
  • 1,351
  • 11
  • 26
13
votes
3 answers

How can you publish a Kubernetes Service without using the type LoadBalancer (on GCP)

I would like to avoid using type: "LoadBalancer" for a certain Kubernetes Service, but still to be able to publish it on the Internet. I am using Google Cloud Platform (GCP) to run a Kubernetes cluster currently running on a single node. I tried to…
13
votes
2 answers

Get Client IP address using WCF 4.5 RemoteEndpointMessageProperty in load balancing situation

I have hosted WCF 4.5 Restful service in IIS and I am trying to use RemoteEndpointMessageProperty to get the IP address of the client who consumes the service. Code 1: private string GetClientIP() { OperationContext context =…
RGS
  • 5,131
  • 6
  • 37
  • 65
13
votes
1 answer

How do I configure SSL with Laravel 5 behind a load balancer (ssl_termination)?

I have a laravel 5 project deployed to AWS EC2 web instances, behind an ELB with ssl termination. For things like assets, Laravel by default uses whatever scheme is currently used. However, I've noticed since the https traffic is decrypted by the…
maherio
  • 143
  • 1
  • 1
  • 7
13
votes
2 answers

Advantage of using HAProxy AND Keepalived vs just Keepalived

As per the (verbose) topic, are there any advantages over using a Keepalived & HAProxy as an HA webserver loadbalancer vs a pure keepalived solution?
Werner
  • 791
  • 1
  • 6
  • 23
13
votes
1 answer

How to load balance containers?

How to load balance docker containers running a simple web application? I have 3 web containers running in a single host. How do I load balance my web containers?
Alok Kumar Singh
  • 2,331
  • 3
  • 18
  • 37
13
votes
2 answers

Multiple domain names attached to same load balancer as alias records?

I have hosted multiple domain names (example.com and example.net ) on same instance in my auto scaling group. Now I have attached this auto scaling group to a load balancer. Using Route 53 can I point two zone apex (such as example.com and…
Zeni
  • 947
  • 1
  • 12
  • 24
13
votes
2 answers

Isn't a load balancer a single point of failure

I am studying about scalability design and I've having a hard time thinking of ways to ensure a load balancer does not become a single point of failure. If a load balancer goes down, who makes the decision to route to a back up load balancer? What…
aw626
  • 235
  • 2
  • 7
13
votes
1 answer

Stateless login/authentication mechanisms for scalable web applications?

I'm trying to understand the options that I have when creating an authentication mechanism for applications that can run on an arbitrary amount of web servers. Until now, I only have experience with small websites that use (web-)server-side sessions…
apptio
  • 131
  • 1
  • 4
13
votes
2 answers

Alternatives to Heroku SSL Endpoint add-on

I'm looking for information on how to configure an HTTP load balancer or proxy server (squid, nginx, HAProxy, etc.) to handle the SSL for my domain as an alternative to adding Heroku's SSL Endpoint add-on for $20/month. The load balancer or proxy…
Matt
  • 925
  • 2
  • 9
  • 19
13
votes
2 answers

Has anyone managed to get SPDY to work behind an Amazon ELB?

We've been using nginx compiled with the spdy module for some time now and despite only being draft 2 of the specs are quite pleased with its performance. However we now have the need to horizontally scale and have put our EC2 instances behind an…
Gordo
  • 779
  • 9
  • 21
13
votes
2 answers

Elastic Beanstalk's Elastic Load Balancer name

I have created a new Elastic Beanstalk application on AWS. I have to use a CNAME to redirect traffic to the end point of the Elastic Load Balancer through a DNS managed by Network Solutions, and they have size restrictions on the length of the…
Jon
  • 3,985
  • 7
  • 48
  • 80
13
votes
1 answer

Load balancing with node.js using http-proxy

I'm trying to code a load balancing with node.js and http-proxy. I want a loadBalancer that shares incoming request treatment between 2 servers. var http = require('http'), httpProxy = require('http-proxy'); var servers = [{host :'127.0.0.1', port…
Florent
  • 241
  • 2
  • 7
12
votes
2 answers

Flagging cookies as "secure" in forms auth when the website is behind a load balancer serving the TLS cert

Recently I had a bit of a problem with a site on AppHarbor which I wrote about on their support forums: Request.IsSecureConnection always returns false In short, because the load balancer is decrypting the HTTPS traffic before it hits the web app,…
Troy Hunt
  • 20,345
  • 13
  • 96
  • 151
12
votes
3 answers

Kubernetes MetalLB External IP not reachable

I can't access to Network IP assigned by MetalLB load Balancer I created a Kubernetes cluster in k3s. Its 1 master and 1 workers. Each one has its own Private IP. Master 192.168.0.13 Worker 192.168.0.13 I Installed k3s with INSTALL_K3S_EXEC="…
Rahul Sharma
  • 779
  • 2
  • 12
  • 27