Questions tagged [amazon-alb]

Amazon Web Services supports three types of Load Balancers. An Application Load Balancer (ALB) functions at the application layer, the seventh layer of the Open Systems Interconnection (OSI) model.

95 questions
17
votes
2 answers

AWS Fargate service: scale to zero?

I've recently migrated a small web application to AWS using Fargate and Aurora Serverless. The application doesn't get much traffic so my goal is to save cost while no one is using it. Aurora Serverless seems to do this for me on the DB side…
computmaxer
  • 367
  • 1
  • 4
  • 11
6
votes
1 answer

AWS Application Load Balancer vs Network Load Balancer

I am trying to understand what are the key differences are between ALB (Application Load Balancer) and NLB (Network Load Balancer). I understand that ALB is at layer 7 on the OSI model -- this means it exists at the application level -- and the NLB…
Diego Velez
  • 780
  • 1
  • 6
  • 13
5
votes
1 answer

AWS ALB resolves to 2 IPs. What are they?

I have set up an AWS ALB for my application. The ALB is connected to AWS ECS cluster which has 2 instances. The 2 instances are in private subnets. When I resolve the IP of the ALB DNS name, I get 2 IPs. Those IPs can be used to access my…
Neron Joseph
  • 277
  • 4
  • 10
5
votes
1 answer

ECS Stopped Task not Releasing Port

I have an ECS cluster with ELB. Last night I saw that a task was stuck in restarting loop. From the service Events log, it said: "service xxxxx was unable to place a task because no container instance met all of its requirements. The closest…
billyklh
  • 51
  • 2
4
votes
1 answer

AWSApplication load balancer - custom headers

I have question regarding AWS ALB. Does anybody knows if it is possible to modify (specifically ADD) custom headers to requests? Something like proxy_set_header in nginx http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_set_header
4
votes
1 answer

Is there any point in using more than one Application Load Balancer on AWS?

One can add to ALB multiple listeners and rules that can check for hostname and forward requests to appropriate target groups. So, I'm not sure what could be the point in using more than 1 Application Load Balancer, if I can just add a new rule?
4
votes
1 answer

ALB Connection Draining is always reaching the "Deregistration Delay"

I'm using ECS along with ALB to expose my containers to the internet. When I'm updating a container image (I'm using CloudFormation to update the tasks and services), the target group set the connections to the old containers to Draining. The issue…
4
votes
1 answer

AWS Application Load Balancer (ALB) in single az

We have an environment setup in AWS and would like to have an ALB with targets in only one AZ and that only appears on IP address in the same AZ. This is required because of some routing rules that we need to ensure that traffic out of one ALB/AZ…
theduck
  • 213
  • 2
  • 6
3
votes
2 answers

Is reverse proxy still required between AWS ALB and application server?

Context Web application with application server, i.e. Ruby on Rails with puma. Running within a container on AWS ECS with Fargate. Traffic is routed by AWS Application Load Balancer directly to application server running within…
3
votes
1 answer

Is there a CloudWatch metric that corresponds to ALB data transfer usage/cost?

I have an Application Load Balancer whose data transfer cost I want to monitor. In Cost Explorer, I can filter on usage type "DataTransfer-Out-Bytes", and see how many GB of data it is sending, and how much that costs. However, it only shows the…
3
votes
1 answer

Should I share an AWS application load balancer between applications?

I have two unrelated applications ( they are not two microservices of the same application, but two separate services ) running on Amazon Ec2 or Fargate. Should I share an application loadbalancer using path-based routing or have a separate…
Heschoon
  • 241
  • 1
  • 9
3
votes
1 answer

HTTP/2 for ALB with EKS on AWS

I'm experimenting with AWS EKS and have created the following setup: EKS cluster with a single service/pod/node AWS ALB ingress controller ALB I try to configure the ALB to: create access logs provide HTTP/2 support My alb ingress controller…
chrisvdb
  • 1,199
  • 2
  • 10
  • 15
3
votes
1 answer

Cloudwatch event for changes in ALB target groups

I have a lambda function that copies the targets (IP addresses in this case) from one target group to another (deleting any in the second target group that don't appear in the first). This gives us 2 target groups that always match each other. The…
theduck
  • 213
  • 2
  • 6
3
votes
1 answer

AWS ALB Connection Draining not Closing Connections after Deregistration Delay

I have three instances configured as targets in an ALB. Connection draining is disabled (deregistration delay set to 0 seconds). Sticky sessions are enabled for 5 minutes. I get stuck to one web server and start a long running (45s) request to it. I…
user65237
3
votes
1 answer

AWS ALB/NLB HTTPS Target with Self-Signed Cert

I am using AWS to build a service. For this service I want to use ACM certificates. The backend is running on an EC2 instance with TLS enabled using a self-signed certificate. Since ACM certificates can't be exported I want to put a load balancer in…
1
2 3 4 5 6 7