Questions tagged [amazon-elb]

Amazon Elastic Load Balancing (ELB) automatically distributes incoming application traffic across multiple Amazon EC2 instances.

Amazon Elastic Load Balancing automatically distributes incoming application traffic across multiple Amazon EC2 instances. It enables you to achieve even greater fault tolerance in your applications, seamlessly providing the amount of load balancing capacity needed in response to incoming application traffic. Elastic Load Balancing detects unhealthy instances within a pool and automatically reroutes traffic to healthy instances until the unhealthy instances have been restored. Customers can enable Elastic Load Balancing within a single Availability Zone or across multiple zones for even more consistent application performance. Elastic Load Balancing can also be used in an Amazon Virtual Private Cloud (“VPC”) to distribute traffic between application tiers.

See more at the product page.

2698 questions
15
votes
5 answers

Exposing to public more than 1 port with AWS ECS service and Elastic LoadBalancer

I have service that exposes multiple ports and it worked fine with kubernetes but now we move it to AWS ECS. It seems I can only expose ports via Load Balancer and I am limited to 1 port per service/tasks even when docker defines multiple ports I…
15
votes
1 answer

Can't get API Gateway to work with private VPC link (behind a network load balancer to a Fargate container)

Can't get API Gateway to work with private VPC link (behind a network load balancer to a Fargate container) containers Hi all, I've spent the last three days trying to get this to work. My goal is to set an a POST method that redirects to a private…
15
votes
1 answer

Load balancer AWS configuration

I have some loadbalancer which works fine. It's configured like this. The app is just running on 80 and redirected by the webserver to 443 and has a route 53 above Now I tried totally the same but when I set my loadbalancer on the same values +…
DenCowboy
  • 13,884
  • 38
  • 114
  • 210
15
votes
7 answers

Why can't my ECS service register available EC2 instances with my ELB?

I've got an EC2 launch configuration that builds the ECS optimized AMI. I've got an auto scaling group that ensures that I've got at least two available instances at all times. Finally, I've got a load balancer. I'm trying to create an ECS service…
Ryan
  • 7,733
  • 10
  • 61
  • 106
15
votes
5 answers

How do I assign a created SecurityGroup to an ELB from CloudFormation?

I've got a CloudFormation script that generates a SecurityGroup and an ELB; I'm trying to reference the SecurityGroup in the ELB creation; here's the resources bit: "ELBSecurityGroup" : { "Type" : "AWS::EC2::SecurityGroup", …
Seb
  • 6,507
  • 2
  • 19
  • 23
15
votes
9 answers

Using an AWS ELB behind Varnish - is it possible?

I'm trying to put a set of EC2 instances behind a couple of Varnish servers. Our Varnish configuration very seldom changes (once or twice a year) but we are always adding/removing/replacing web backends for all kinds of reasons (updates, problems,…
user1950119
  • 181
  • 1
  • 2
  • 4
14
votes
5 answers

Remote IP address with node-js behind amazon ELB

I have a node application on an instance-store amazon machine behind the elastic load balancer (elb). However, the remote IP adress seems to always be the same. I used this code to get the client's IP address in node (via…
14
votes
1 answer

Application Load Balancer with ECS Fargate

I am trying to configure load-balancing for Fargate ECS. My understanding is that there are at least two target groups. One target group gets created along with the Application Load Balancer, and one target group gets created along with the ECS…
Igor Shmukler
  • 1,742
  • 3
  • 15
  • 48
14
votes
1 answer

Can proxy protocol be used with AWS Application Load Balancers?

AWS's older 'Classic' load balancers have the ability to set a proxy protocol policy, which adds the external IP address of a request to a HTTP header for the internal requests. AWS's newer Application Load Balancers don't seem to have this same…
pat
  • 16,116
  • 5
  • 40
  • 46
14
votes
2 answers

AWS ALB redirect to https

My Apache servers are behind an ALB/ELB. I'm terminating SSL at the load balancer. The load balancer listens on both 80 and 443. I want to redirect all http requests to https. I have this rewrite rule in place in the vhost config: RewriteEngine…
yossarian2004
  • 299
  • 1
  • 3
  • 11
14
votes
3 answers

AWS Network load balancer - What is client reset count (and why is it high)

The documentation for the various client/target/elb reset count metrics (TCP_Client_Reset_Count, TCP_Target_Reset_Count, TCP_ELB_Reset_Count) just says they count RST packets. I tried to understand what a RST packet is, and it seems to have to do…
Aleksandr Dubinsky
  • 22,436
  • 15
  • 82
  • 99
14
votes
1 answer

AWS application load balancer and socket.io

I have a socket.io chat room running whose traffic is getting larger as we are running on one machine. We have ran benchmarks using the ws library for sockets and they do perform much better which would better utilize our hardware. This would come…
user2924127
  • 6,034
  • 16
  • 78
  • 136
14
votes
2 answers

How do I work out why an ECS health-check is failing?

Outline: I have a very simple ECS container which listens on port 5000 and writes out HelloWorld, plus the hostname of the instance it is running on. I want to deploy many of these containers using ECS and load balance them just to really learn more…
14
votes
5 answers

Websockets with AWS and Elastic Beanstalk

I'm trying to get my websockets working with Amazon Web Service and Elastic Beanstalk (ELB). I set up a proxy protocol according to: http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/enable-proxy-protocol.html I've opened up all…
Martok11
  • 261
  • 1
  • 4
  • 9
14
votes
2 answers

Allow HTTP Access to AWS instances only through ELB

I've seen a bunch of similar questions like this one, but none give a general answer. I'm new to AWS. I have 2 instances running in my VPC right now. I have an ELB setup in front of them that's working just fine in routing traffic to both. Problem…
Eli
  • 36,793
  • 40
  • 144
  • 207