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
443
votes
13 answers

Ingress vs Load Balancer

I am quite confused about the roles of Ingress and Load Balancer in Kubernetes. As far as I understand Ingress is used to map incoming traffic from the internet to the services running in the cluster. The role of load balancer is to forward traffic…
arunkjn
  • 5,631
  • 5
  • 21
  • 31
306
votes
32 answers

Kubernetes service external ip pending

I am trying to deploy nginx on kubernetes, kubernetes version is v1.5.2, I have deployed nginx with 3 replica, YAML file is below, apiVersion: extensions/v1beta1 kind: Deployment metadata: name: deployment-example spec: replicas: 3 …
Pankaj Jackson
  • 3,521
  • 3
  • 15
  • 19
165
votes
4 answers

Database cluster and load balancing

What is database clustering? If you allow the same database to be on 2 different servers how do they keep the data between synchronized. And how does this differ from load balancing from a database server perspective?
141
votes
7 answers

Difference between session affinity and sticky session?

What is the difference between session affinity and sticky session in context of load balancing servers?
user32262
  • 8,660
  • 21
  • 64
  • 77
133
votes
3 answers

Loadbalancing web sockets

I have a server which supports web sockets. Browsers connect to my site and each one opens a web socket to www.mydomain.example. That way, my social network app can push messages to the clients. Traditionally, using just HTTP requests, I would scale…
John Smith
  • 3,037
  • 5
  • 29
  • 31
109
votes
8 answers

How can I use Spring Security without sessions?

I am building a web application with Spring Security that will live on Amazon EC2 and use Amazon's Elastic Load Balancers. Unfortunately, ELB does not support sticky sessions, so I need to ensure my application works properly without sessions. So…
Jarrod Carlson
  • 1,967
  • 4
  • 16
  • 20
88
votes
6 answers

You may not specify a referenced group id for an existing IPv4 CIDR rule. prompt when editing the Inbound rule in AWS Security Group

In AWS EC2, I start a Classical Load Balancer in front of EC2 instance (security group of EC2 instance is launch-wizard-3). I want to change the inbound rule of Security Group of EC2 instance . A security group for Classical Load Balancer (its name…
81
votes
3 answers

Nginx TCP forwarding based on hostname

With the release of TCP load balancing for the Nginx community version, I would like to mix OpenVPN and SSL pass-through data. The only way for Nginx to know how to route the traffic is via their domain name. vpn1.app.com ─┬─► nginx at 10.0.0.1…
James Wong
  • 4,529
  • 4
  • 48
  • 65
72
votes
4 answers

Elastic Beanstalk without Elastic Load Balancer

I would like to switch off Elastic Load Balancer (ELB) for my Elastic Beanstalk environment. Currently I don't need it and I don't want to pay for it. It is possible to delete the ELB in EC2 managment window but then Elastic Beanstalk health state…
63
votes
3 answers

Adding machineKey to web.config on web-farm sites

We (our IT partner really) recently changed some DNS for a web farmed site we have, so that the two production server have round-robin DNS switching between them. Prior to this switch we didn't really have problems with WebResource.axd files. Since…
Mark Ursino
  • 31,209
  • 11
  • 51
  • 83
60
votes
5 answers

Web App: High Availability / How to prevent a single point of failure?

Can someone explain to me how high-availability ("HA") works for a web application ... because I assume HA means that there exist no single-point-of-failure. However, even if a load balancer is used- isn't that the single point of failure?
nickb
  • 9,140
  • 11
  • 39
  • 48
56
votes
13 answers

Distributed Concurrency Control

I've been working on this for a few days now, and I've found several solutions but none of them incredibly simple or lightweight. The problem is basically this: We have a cluster of 10 machines, each of which is running the same software on a…
Bob Gettys
  • 1,194
  • 1
  • 8
  • 12
56
votes
1 answer

Pros and Cons of Sticky Session / Session Affinity load blancing strategy?

One approach to high scalability is to use network load balancing to split processing load between several servers. One challenge that this approach presents is where servers are state aware - storing user state in a "session". One solution to…
urig
  • 16,016
  • 26
  • 115
  • 184
53
votes
10 answers

PHP sessions in a load balancing cluster - how?

OK, so I've got this totally rare an unique scenario of a load balanced PHP website. The bummer is - it didn't used to be load balanced. Now we're starting to get issues... Currently the only issue is with PHP sessions. Naturally nobody thought of…
Vilx-
  • 104,512
  • 87
  • 279
  • 422
50
votes
6 answers

Load balancer and API Gateway confusion

I have always worked on mobile technologies and now I am stepping into backend systems, more specifically systems design. I keep coming across conflicting statements for the roles of api gateway and load balancer. Googling has only returned the same…
Farhan
  • 1,000
  • 1
  • 11
  • 22
1
2 3
99 100