Questions tagged with Elastic Load Balancing
Content language: English
Sort by most recent
What is a F5 Load Balancer ?
Currently doing a migration and the one of the teams in their current architecture has an F5 Load balancer listed as part of the network. My questions are: What is a F5 Load Balancer ? What is the equivalent of an F5 Load Balancer in AWS? Is it an Application Load balancer or a Network Load balancer?
ECS Fargate and ALB failed the health check with timeout (Node.js app)
I have been trying for two days to run a Node.js application on ECS Fargate connected to a Load Balancer, but somehow it does not pass the health check. I use CDK to create the infrastructure and already use other applications with the same setup that work perfectly. The Dockerfile image works perfectly locally with docker-compose. I am not convinced that's a problem at the SG and infrastructure level, but I think more that it's application side, maybe you have an idea where to go to check. The application is not developed by me and uses Express as server with listener on port 9000. IMPORTANT: I created a small application to test with the same port and endpoint for heath check = it worked perfectly. (health check passed) I increased the ECS idle timeout etc. but nothing Looking at the Task Logs (see image), I see that the application returns a 200 status on the heath check endpoint, however if I try to call the load balancer from its address, the call goes to 504 timeout. I tried from an EC2 machine to connect to the task on the private IP-address: with telnet it seems to work, but if I curl on the health check endpoint, it goes to timeouts. Sometimes if I try to call the load balancer several times (perhaps while the task is starting), the application responds (i.e. I see that the endpoint is working), but immediately afterwards it goes into timeout Any idea? ![Enter image description here](/media/postImages/original/IMBRZWTodnTqu_cmYco5cULQ)
route53 and ELB latency
Hello, I use an ALB on the front of my application (deployed on ECS). And I use route53 in order to set elb as an alias record. When I call my application url directly from ELB by his dns it take few ms but when I call my application url over route53 it take 10s!. I don't uderstand why? bellow show how is configured on route53 my record ``` myapp.env-dev.aws.domain.com A Simple - dev-ecs-alb-xxxx.eu-west-1.elb.amazonaws.com. ``` If I call directly **dev-ecs-alb-xxxx.eu-west-1.elb.amazonaws.com** it work correctly but if I call **myapp.env-dev.aws.domain.com** it make 10s to give me a response
Application Load Balancer Error 503
Hi, We deployed an application load balancer and we're experiencing 503 errors on our frontend but all instances are on the target group is showing healthy status. CPU Utilization is also low and request count is around 300k per hour. Is there a limit to the traffic after deploying a new application load balancer? Do we need to request a pre-warming based on the request count provided above?
Environment health has transitioned from Warning to Ok to Warning
Hello... Several times a day we receive messages like the following: * Environmental health has transitioned from Ok to Warning. No data received from 1 out of 3 instances. 33.3% of the requests to the ELB are failing with HTTP 5xx. Insufficient request rate (1.5 requests/min) to determine application health (5 minutes ago). * Environment health has transitioned from Ok to Warning. 1.0 % of the requests to the ELB are failing with HTTP 5xx (3 minutes ago). But this happens very fast and we can't see the cause of the problem. We have looked at the logs and we have not found relevant information either. I appreciate if someone can guide me on how to resolve this notification Thanks in advanced
Is there a way to know if number of Load Balancer's backend changed?
I frequently run below script to get actual IP addresses of ec2 instances working as a Load balancer's backend. ``` TG_ELEMENTS=`aws elbv2 describe-target-health --target-group-arn $TG_ARN --query 'TargetHealthDescriptions[*].Target.Id' --profile $PROFILE` for i in $TG_ELEMENTS ; do aws ec2 describe-instances --instance-id $i --query 'Reservations.Instances.PrivateIpAddress' --profile $PROFILE done ``` Mostly returned TG_ELEMENTS list is the same (scalling is not so frequent). I was wondering if there is a way to do some small query to know if target group / load balancer's backend change, and if so do some extra queries to get these IP address list?
Facing CORS error on AWS ECS Fargate container
I have deployed my application backend on AWS ECS Fargate container and I deployed my application on second AWS ECS Fargate container. Both, frontend and backend, are using two different load balancers. But when I try to connect my frontend with backend it is throwing a CORS error that you can see in the following picture. ![CORS ERROR](/media/postImages/original/IMtioicrX8ThG8QtwRu35mEQ) Does anyone have any idea why this error is coming and how I can resolve it?
AWS should not take capital letters in DNS URL
Why is AWS ELB field designed to allow capital letters ? The global truth is that DNS in browser always is parsed as lowercase letters . When using them as PUBLIC IP in applications, we must parse it as lowercase as well although AWS Load Balancer field allows capital letters. Then why allow capital letters at all ? Should not this be an improvement on AWS side ?
CloudFront - Internal ELB Origin
Hi all, By Documentation to be able to use ELB as an Origin for a CloudFront Distribution it should be internet-facing. the question is why CloudFront is showing also Internal Load Balancers between the list of possibile Origin Domains that can be selected during the creation of a new Origin ? there is a way to use CloudFront with Private resources ?
Elastic Beanstalk application deployment took long time than expected.
I'm deploying an ECS Based application via Elastic Bean Stalk, it's been executed for a long time. ``` Environment health has transitioned from Pending to Severe. The command is executing on all instances (15 minutes or more elapsed). ``` This might be an issue with the permissions attached via the service role. How to resolve this issue?