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

How can i forcefully redirect http request to https in passenger standalone with aws elastic load balancer?

I used passenger standalone for my app. currently my app is running on both http and https . i want to redirect all http request to https. I used load balancer in my application. I read this articles…
13
votes
1 answer

AWS Load Balancer EC2 health check request timed out failure

I'm trying to get down and dirty with DevOps and I'm running into a health check request timed out failure. The problem is my Elastic Load Balancer sends a health check to my EC2 instance and gets a network timeout. I'm not sure what I did wrong. I…
13
votes
2 answers

Create AWS Application Load Balancer Rule which trim off request's prefix without using additional reverse proxy like nginx, httpd

Basically, I have a couple of services. I want to forward every requests with prefix "/secured" to server1 port 80 and all other requests to server 2 port 80. The problem is that on server1, I am running service which accept the request without…
auxdx
  • 2,313
  • 3
  • 21
  • 25
12
votes
1 answer

How to load balance gRPC on AWS

I've been looking through this for a week and haven't been able to find anything that has helped me. I'll be upfront, I'm new to AWS so I'm sure things are flying over my head. Problem I am currently writing an application which is being deployed to…
12
votes
1 answer

what is the difference between a load balancer, listener target, target group in AWS?

Hi I am new to AWS and trying to understanding the difference between a load balance, target, target group and security group . I have 2 instances running. Now i want to balance the load coming to these servers. Will load balance be created on a…
Neha
  • 745
  • 4
  • 10
  • 18
11
votes
4 answers

Does AWS support weighted load balancing?

Does AWS natively support weighted load balancing? From what I see, ELB does only support round-robin load balancing (without any configurable weights). I have not found reliable documentation on it, though. The easiest thing that I can think of is…
11
votes
3 answers

Elastic Beanstalk reuse existing load balancer

Is it possible to reuse existing load balancer using elastic beanstalk?
9
votes
1 answer

How to setup API gateway to talk to private NLB?

I has been using an ALB until I realized I cannot connect a private ALB to API gateway ... so am trying NLB now. So far I have Private NLB API Gateway VPC Link to connect to NLB But I am unsure how to configure API gateway properly. I did:…
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
9
votes
1 answer

ECS tasks desired count not working

I have three EC2 instances, with a classic load balancer. Ideally I should have two tasks running in two instances. So when creating the service I made the desired count of the tasks to 2. My problem arises when I try to run new version of the task…
8
votes
1 answer

AWS NLB warning: There is an Internet Gateway attached to these subnets

I am relatively new to AWS. I've been able to: Setup edge-optimized API Gateway endpoints (w/a custom domain ... install an SSL cert, etc.) Route requests from API Gateway to a server running on an EC2 instance via HTTP proxy For learning, I'd…
8
votes
1 answer

Secure Web Socket (wss) using AWS Load Balancer

I have a small nodejs application containing a web socket server. The app is hosted inside an ecs container so it is basically a docker image running on an ec2 instance. The web socket works as expected over ws://. I use port 5000 for this. In…
dknaack
  • 60,192
  • 27
  • 155
  • 202
8
votes
3 answers

Loadbalancing web sockets - AWS Elastic Loadbalancer

I have a question about how to load balance web sockets with AWS elastic load balancer. I have 2 EC2 instances behind AWS elastic load balancer. When any user login, the user session will be established with one of the server, say EC2 instance1.…
user1578872
  • 7,808
  • 29
  • 108
  • 206
8
votes
1 answer

Constant Backend Connection Errors in AWS Load Balancer

I am trying to use a load balancer with AWS ECS on AWS. For some reason, the graph always looks like This happens even when there is no request coming to the load balancer at all. I cannot find this in logs either. What do this mean and what cause…
user2286243
7
votes
1 answer

Limit TCP connections to target behind AWS Application Load Balancer

I have an application/target behind AWS ALB and would like to place a hard cap on the number of TCP connections it will receive. If I understand correctly, an ALB target can be either Healthy -- ALB will route traffic to the target. or Unhealthy…
6
votes
2 answers

NGINX Load Balancing a Turn Server

I am attempting to put a Load Balancer in front of a Turn Server for use with WebRTC. I am using one turn server in my examples below until I get the load balancer working. The turn server requires multiple ports including one UDP as listed…
Jenk Rendar
  • 71
  • 1
  • 5
1
2
3
22 23