Questions tagged [elastic-load-balancer]

Use this tag for questions related to the Elastic Load Balancer, used to automatically distributes incoming application traffic across multiple Amazon EC2 instances.

Usually accompanies this tag, so you are encouraged to use it too, if applicable.

331 questions
45
votes
5 answers

Does an Application Load Balancer support WebSockets?

I have an Elastic Beanstalk application which was initially configured to use a Classic Load Balancer. I found that this caused errors when connecting via WebSocket. Because of this, I configured the application to use an Application Load Balancer…
jameshfisher
  • 34,029
  • 31
  • 121
  • 167
36
votes
2 answers

Is the most recent AWSALB cookie required? (AWS ELB Application Load Balancer)

Observations When using an Amazon ELB Application Load Balancer and working with Sticky Sessions the load balancer inserts a cookie named AWSALB in the first request. To let the next request stick to the same target node (EC2 instance) the cookie…
mgd
  • 4,114
  • 3
  • 23
  • 32
28
votes
3 answers

EC2. Load balancer. At least two subnets must be specified

I'm trying to create and configure Load Balancer. The Availability Zones section has only one subnet and one zone for me. I faced error: At least two subnets must be specified. Simple question - what should I do? thanks.
28
votes
2 answers

AWS Load Balancer 502

I have microservices(in different programming languages) running on an EC2 instance. On production I notice a few 502 Bad Gateway Errors when these services try to interact with each other. Also in the logs of the requested service it doesn't show…
26
votes
6 answers

Terraform ELB S3 Permissions Issue

I am having an issue using Terraform (v0.9.2) adding services to an ELB (I'm using: https://github.com/segmentio/stack/blob/master/s3-logs/main.tf). When I run terraform apply I get this error: * module.solr.module.elb.aws_elb.main: 1 error(s)…
21
votes
4 answers

AWS CloudFormation Application Load Balancer - how to redirect HTTP listener to HTTPS listener?

I am trying to write a CloudFormation template for ALB, but got stuck on the point where I would like to redirect ALB's HTTP listener's traffic to HTTPS listener. Docs mention only forwarding/redirection to the target group. I am aware that it is…
20
votes
8 answers

How to make a HTTP call reaching all instances behind amazon AWS load balancer?

I have a web app which runs behind Amazon AWS Elastic Load Balancer with 3 instances attached. The app has a /refresh endpoint to reload reference data. It need to be run whenever new data is available, which happens several times a week. What I…
19
votes
2 answers

Status Code 460 on Application Load Balancer

I'm seeing a concerning amount of 460 status codes in the logs of my Application Load Balancer. I don't see any patterns on these codes in regards to times, servers, or request URLs. According to this forum post, the 460 means: The client has…
17
votes
2 answers

AWS Instance Only Allow Traffic From Load Balancer

I have a Load Balancer and Auto-Scaling Group. The Load Balancer sends traffic to my Auto-Scaling Group. I have two instances: Instance 7000 (which is listening on port 7000 and is part of the auto-scaling group and gets its traffic from the load…
17
votes
1 answer

returned non-zero exit status -9

I am deploying code on elastic beanstalk and it gives me this error. I was using nginx proxy and elastic load balancer I disabled both and then try to deploy code this give me following error. I am unable to find any solution npm WARN deprecated…
16
votes
3 answers

NodeJs application behind Amazon ELB throws 502

We have a node application running behind Amazon Elastic Load Balancer (ELB), which randomly throws 502 errors when there are multiple concurrent requests and when each request takes time to process. Initially, we tried to increase the idle timeout…
RAGHU RAMAN
  • 537
  • 4
  • 16
15
votes
1 answer

Automatically set ListenerRule Priority in CloudFormation template

I have a CloudFormation template that contains an Application Load Balancer ListenerRule. One of the required properties of a ListenerRule is its Priority (a number between 1 and 50000). The priority for each ListenerRule must be unique. I need to…
15
votes
3 answers

Load balancing across different Elastic Beanstalk applications

In my AWS environment there are some load balanced / autoscaled Elastic Beanstalk applications. I would like to have a load balancer in front of them, so any request to http://loadbalancer.com/app1 is routed to the first Elastic Beanstalk app, …
14
votes
1 answer

Scaling with sticky sessions and websockets

Initially we have two AWS EC2 instances with node.js running behind a load balancer with sticky sessions. As the load increases more instances are added. But we are facing problems with this approach. As out application is mainly for workshops, the…
13
votes
1 answer

Terraform (A)lb redirect http -> https

If I get this right, lb_listener only accepts forward as valid action type. https://www.terraform.io/docs/providers/aws/r/lb_listener.html How do I configure a listener to redirect HTTP to HTTPS? i.e. this is the desired state in elb listener:
LiorH
  • 18,524
  • 17
  • 70
  • 98
1
2 3
22 23