Questions tagged [aws-elb]

Amazon Web Services Elastic Load Balancer (aws-elb) is a service offered by aws to automatically distribute incoming network traffic across multiple targets (EC2 instances or specific ports).

190 questions
57
votes
5 answers

How is "Target Groups" different from "Auto-Scaling Groups" in AWS?

I'm a little too confused on the terms and its usage. Can you please help me understand how are these used with Load Balancers? I referred the aws-doc in vain for this :(
karthiks
  • 7,049
  • 7
  • 47
  • 62
25
votes
6 answers

Aws-elb health check failing at 302 code

Hi i created ALB listener 443 and target group instance on 7070 port (not-ssl) I can access instanceip:7070 without problem , but with https://elb-dns-name not able to access.. instance health check also failed with 302 code ALB listener port https…
Ashok Reddy
  • 1,060
  • 1
  • 16
  • 28
21
votes
1 answer

how to get list of registered targets in AWS target group via CLI

We are trying to get the state of a registered target (instance) in a target group. This can be done with the command aws elbv2 describe-target-health --target-group-arn ${TG} --targets Id=${ID},Port=${PORT}, reference. We are able to get the PORT…
Jose Martinez
  • 11,452
  • 7
  • 53
  • 68
16
votes
5 answers

Kubernetes and AWS: Set LoadBalancer to use predefined Security Group

As the title says, I am looking for a way to force a LoadBalancer service to use a predefined security group in AWS. I do not want to have to manually edit the inbound/outbound rules of the security group that is created for the ELB by Kubernetes. I…
Andonaeus
  • 872
  • 1
  • 5
  • 21
13
votes
3 answers

Websocket closing after 60 seconds of being idle while connection node server using AWS ELB

I have one node server running on EC2 instance and client is also running on same EC2 instance, Client open websocket connection to communicate node server, it is working in QA and Dev AWS environment but same web connection is getting close after…
Dharam
  • 469
  • 2
  • 9
  • 23
12
votes
1 answer

ELB health check history / log

I have an ELB (Network Load Balancer with a couple of Auto Scaling Groups as Target Group) that has periodical health check fails (i.e. some instances would be marked as unhealthy and then recover after a few minutes). The health check is a simple…
lznt
  • 2,330
  • 2
  • 22
  • 27
12
votes
5 answers

Is there option to redirect http traffic to https in aws network load balancer

In Classic Load Balancer(CLB) and Application Load Balancer(ALB) there is option to redirect all http traffic to https listener. I do not find the option to redirect tcp port 80 traffic to tls port 443 from NLB (Network Load Balancer) Any help is…
jaleel
  • 131
  • 1
  • 1
  • 4
11
votes
0 answers

ECS Rolling updates can cause 502 Bad Gateway

I've been testing the ECS's rolling updates in DAEMON mode and I'm not able to avoid occasional "502 Bad Gateway" responses. Here is what I did to test this which seems to point at a bug in the draining strategy process. To start, I wrote a minimal…
Slawomir
  • 3,194
  • 1
  • 30
  • 36
10
votes
4 answers

Healthcheck for NetworkLoadBalancer with UDP ECS service

I'm trying to deploy an ECS service that uses only a UDP port. Support has been added for UDP load-balancing via NetworkLoadBalancers, so I've deployed my service allowing dynamic host port assignment for my tasks and setup the NLB with an…
tdimmig
  • 680
  • 9
  • 24
9
votes
3 answers

Why is it that an NLB in AWS does not require a Security Group?

In AWS, while configuring CLB and ALB type of Load balancers, it is mandatory to associate a Security Group. This association helps in limiting the type of traffic to the Load balancer. Why is a Security Group not required for an NLB? Is it not a…
9
votes
1 answer

Can I use AWS own ELB certificate for HTTPS/SSL connection?

I know that you can add your own certificate to the domain and point that domain to the AWS Elastic Load Balancer. In my case I don't have domain, but would like still use secure HTTPS/SSL connection when talking client <-> backend. Is it possible…
Maksim Luzik
  • 5,863
  • 4
  • 36
  • 57
8
votes
1 answer

AWS ALB - You must specify subnets from at least two Availability Zones

For an ALB - "You must specify subnets from at least two Availability Zones." For an NLB - "You can specify subnets from one or more Availability Zones." What is the reason for enforcing 2 AZs as a MUST requirement for ALB specifically and not for…
kiran01bm
  • 682
  • 7
  • 18
8
votes
1 answer

Kubernetes ingress websockets connection issue

Deployed k8s on AWS with KOPS. I have created nginx ingress https://github.com/kubernetes/ingress-nginx nginx-ingress-controller image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.18.0 Everything is up and running and I could…
Ram
  • 157
  • 1
  • 3
  • 8
6
votes
1 answer

First request to AWS ELB is slow every time

Looking to understand AWS Classic Load Balancing here. I have an elastic beanstalk web application running behind a classic ELB where I am currently the only traffic (under development). When I send a request, the first time it always takes exactly…
JBaczuk
  • 13,886
  • 10
  • 58
  • 86
6
votes
1 answer

Apache threads stay in state reading after queries

My configuration is apache and tomcat behind an aws elb. Apache is configured with no keepalive, and set with max clients to a low number due to each query being very cpu intensive. I'll load test the machine with queries. Then the number of…
user782220
  • 10,677
  • 21
  • 72
  • 135
1
2 3
12 13