Questions tagged [amazon-elb]

ELB is Amazon's managed Load Balancer service, used in conjunction with its EC2 virtual machine cloud hosting service.

153 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
1 answer
2k views

EC2 VPC Intermittent outbound connection timeouts

My production web service consists of: Auto-scaling group Network loadbalancer (ELB) 2x EC2 instances as web servers This configuration was running fine until yesterday when one of the EC2 instances ...
DanielB6's user avatar
  • 121
4 votes
0 answers
7k views

ELB_5xx errors but no application errors

We see lot of ELB_5xx errors recently. During this time there is no error logged in the back end server, no HTTP 5xx errors , there is no 5xx errors in ELB logs and there is no application restart. ...
Selvakumar P's user avatar
4 votes
1 answer
650 views

AWS ELB: cloudwatch metric for open connections?

I'm setting up ELB, and I'm having trouble finding a suitable metric to use to adjust the size of the pool. RequestCount doesn't work because some requests are much cheaper than others. Latency ...
Bryan Larsen's user avatar
3 votes
0 answers
413 views

Website is stalling for a few seconds on initial load

I have a website that consistently has a initial delay anywhere from 2 - 10 seconds. Using chrome dev tools I can see that the delay is marked Stalled under the Connection Start. See image: Other ...
6557457iD9e's user avatar
3 votes
1 answer
5k views

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 ...
user avatar
3 votes
1 answer
2k views

How to get HTTP/2 working with a AWS ALB and Tomcat 9

So I'm having difficultly getting HTTP/2 working with the newer version of the AWS Application Load Balancer, and Tomcat 9. I added the <UpgradeProtocol className="org.apache.coyote.http2....
Zipper's user avatar
  • 413
3 votes
0 answers
360 views

Is there an advantage to using NGINX for reverse proxy over Tomcat's built-in proxying?

We have an application that runs in Tomcat on an EC2 instance. We have an ELB in front of the EC2 that is configured with the following listeners: ELB port 80 --> nginx port 80 --&...
LegendaryDude's user avatar
3 votes
1 answer
440 views

What is best practice for upgrades with AWS autoscaling and database migrations?

I would like to use a combination of an ELB and AutoScaling for a web application. For upgrades to the web application that don't involve changing the database, I can simply rotate all the instances ...
akoumjian's user avatar
  • 141
2 votes
1 answer
230 views

How Do I Use The <VirtualHost> Directive To Host Multiple Sites Using An EC2 Instance, ELB, And CloudFront?

I've been really struggling with this for the past few days, and I'm at a lost. Here's what's going on. I have an EC2 instance (Amazon Linux 2023) behind an ELB and a CloudFront distribution that I ...
wholelottabob's user avatar
2 votes
0 answers
39 views

Rewrite rule with deleting a pattern or backward reference in the path with AWS ELB

Using AWS ELB, I want the folowing rewrite rule : https://example.com/dl/toto.jpg should transform to https://dl.example.com/toto.jpg I tried two ways to do this : matching path /dl/* and return a ...
profy's user avatar
  • 1,156
2 votes
1 answer
231 views

Failed to connect instance with ALB

I'm trying to build a system like this one: I can't connect to the Instance in private public through ALB. I checked my cloudformation code several times and still couldn't find problem. Please help ...
Kitakado's user avatar
2 votes
1 answer
3k views

AWS - Throttling ELB HTTP Traffic

I'm running a pretty standard LAMP stack on AWS. ELB distributes traffic to a few EC2 Instances running the same application. I have an issue where periodically I receive a huge spike in HTTP ...
Drongo's user avatar
  • 31
2 votes
1 answer
4k views

Nginx Proxy to AWS ELB not passing HTTPS protocol to Backend Instances

This is my first ever question, so please go easy on me! I'm trying to set up an Nginx proxy server to auto-generate SSL certificates using OpenResty/Lua and LetsEncrypt, within a multi-tenant SAAS ...
bryanus's user avatar
  • 131
2 votes
1 answer
3k views

AWS Elastic Load Balancer And 408 Request Timeout

We have a scenario where we are trying to access Openfire admin console behind AWS ELB using https. The http url works fine , but the https does not work, and we see a 408 request timeout error while ...
user1525825's user avatar
2 votes
0 answers
383 views

ELB to tomcat https redirecting to http

So we have tomcat servers behind a AWS ELB. Everything is working fine with https except if we manually type in this address: https://example.com/web/ This works fine... https://example.com/web ...
mmaceachran's user avatar
2 votes
0 answers
2k views

Amazon ELB https termination results in 504 for large file uploads

I've stumbled upon the following issue and can't seem to find a solution. Setup: IIS server behind Amazon ELB setup to terminate SSL connections on the ELB with a setup of https 443 -> https 443 (...
Daniel Friedmann's user avatar
2 votes
1 answer
245 views

Incremental Subdomain Brute forcing?

Currently looking after a small varnish/nginx webserver group sitting behind an AWS ELB. Monitoring of the primary domain recently picked up a huge number of hits to non-existent sub-domain ...
geniestacks's user avatar
2 votes
2 answers
1k views

AWS ELB Not working as desired

Trying to load balance my app with the use of an AWS Elastic Load Balancer. The app is a custom TCP-based sender/receiver. In any case, ELB seems to send 100% of the traffic to one machine, ...
CMag's user avatar
  • 707
2 votes
1 answer
841 views

Application reports timeouts. However nginx has no record or log

We are serving Django via nginx/uwsgi. We use AWS ELB behind a VPC. This is a webservice to Mobile clients. We had reports of timeouts during development so we have added a concept of a request_id ...
semarjt's user avatar
  • 21
2 votes
1 answer
505 views

Resque(Redis) On EC2 Micro Replciated to 3 availability zones

I'm going to build a failover setup for my resque jobs system wich uses Redis as a queue. The idea is to put 3 redises in different availability zones on micro instances and replicate them. Also would ...
Stanislav O. Pogrebnyak's user avatar
1 vote
1 answer
55 views

How to direct https traffic from aws ELB to gke pods in gcp cloud

We are in the middle of migrating our micro services from aws to gcp cloud. Our REST api's are served via an api-gateway which internally calls the respective micro services. So ELB rules were ...
sanre6's user avatar
  • 111
1 vote
0 answers
131 views

Fastest way to import files in Spark?

I’m playing around with Spark 3.0.1 and I’m really impressed by the performance with Spark SQL on GB of data. I’m trying to understand what’s the best way to import multiple JSON files in the Spark ...
int 2Eh's user avatar
  • 193
1 vote
0 answers
504 views

AWS ELB: Trailing slash issue :: Website is not loading

Scenario: My website resolves to Aws ELB with 443 listener Backend Target group is an EC2 instance with apache running on port 8080 Problem: If I miss the trailing slash, the website does not ...
himathur's user avatar
1 vote
0 answers
48 views

AWS sample template vpc+multiple subnets not working

I'm deploying an apparently simple CloudFormation template from AWS samples: https://s3-ap-northeast-1.amazonaws.com/cloudformation-templates-ap-northeast-1/vpc_multiple_subnets.template As stated, it ...
Glasnhost's user avatar
  • 651
1 vote
1 answer
4k views

ELB redirect traffic from one port to another

Can AWS ELB redirect traffic from one port to another? Take this example - I have an application running on 8445 but I only want to expose port 443. I have tried this with target groups and listeners ...
Bladerider1's user avatar
1 vote
0 answers
35 views

HAProxy - How to suppress HTTP/1.1 503 from being sent to the client when in maintenance mode

I'm having problems trying to suppress HTTP/1.1 503 from being sent upstream from HAProxy. In my environment clients first hit an ELB (classic) instance before traffic is sent on to HAProxy. When we ...
grantc's user avatar
  • 141
1 vote
0 answers
98 views

How to authenticate EC2 instance with AWS ALB?

AWS Application Load Balancers (ALB) support authentication: https://aws.amazon.com/blogs/aws/built-in-authentication-in-alb/. The documentation talks about human users - users arriving at the ALB ...
John's user avatar
  • 293
1 vote
1 answer
134 views

AWS ELB to Target group Mapping

I am new to AWS And setting up ELB .I worked in F5 LTM and I have some queries about application hosting in ELB. Do we really need a CNAME to route the traffic to ELB FQDN If so ,how can I host ...
Ramkumar's user avatar
1 vote
0 answers
36 views

AWS ACM renewal issue with DNS method

I have ACM certificate which is verified with DNS method. Now it's getting issue of renewal. Because domain is pointed with ELB record as CNAME. How can I add both ELB CNAME and ACM CNAME record to ...
Kashyap Gandhi's user avatar
1 vote
1 answer
2k views

How to resolve AWS ELB redirection issue

We have deployed an application (Tomcat based) to an AWS EC2 instance. I am able to access the site directly and I can access it via the internal ELB. However I can't access it via the external ELB ...
Andrew M's user avatar
1 vote
1 answer
1k views

robots.txt route requires a backslash when behind an Application Load Balancer

I have a rails site using an AWS ALB and all routes appear to work except one, robots.txt. I am getting the error "ERR_TOO_MANY_REDIRECTS", link to example: https://www.mamapedia.com/robots.txt ...
6557457iD9e's user avatar
1 vote
0 answers
2k views

AWS network load balancer's TCP listener on port 80 isn't forwarding HTTP/2 requests properly

I've got a GRPC server listening on port 8000 on an ec2 instance. If I put a network load balancer in front of it with a TCP listener on port 80, the HTTP/2 connection preface PRI * HTTP/2.0 isn't ...
Derek's user avatar
  • 61
1 vote
0 answers
632 views

AWS - ECS with ELB not working, instance IP works though

I've set up an ECS cluster with a single container, with an ELB to serve the traffic to it. The ELB listener is HTTPS/443, and the host listener is HTTP/8080. I.e. when you hit the URL it's HTTPS but ...
user1840352's user avatar
1 vote
0 answers
575 views

Amazon AWS WebSocket Load Balancing Scale-In

We are in the process of developing a WebSocket application that will run on the same application servers that serve our APIs, which are all within a target group of a new Amazon Application Load ...
Sivart's user avatar
  • 131
1 vote
0 answers
243 views

Gitlab SSH shell in Docker behind an ELB

I'm wondering what is the best solution to following case: I'm running Gitlab CE on EC2 instance with Docker (Gitlab shell port is 2222) and Gitlab is behind an ELB. How should I proxy trafic to ...
pgrzesik's user avatar
  • 131
1 vote
1 answer
3k views

TTFB on AWS EC2 Instance is Very Slow

I'm very new to hosting/server administration and my employer ask me to use this chance to learn and find a way to update our current hosting setup. Our current setup was one EC2 instance that hosted ...
Radizzt's user avatar
  • 11
1 vote
0 answers
420 views

Why is the NewConnectionCount so high for my ELB in AWS?

I'm running an ELB on my EC2 in the free tier. I have a domain with a wildcard (*.domain.com) pointed at my ElasticIP on the Application ELB. It runs fine most of the time (NewConnectionCount less ...
piisexactly3's user avatar
1 vote
0 answers
301 views

Benefits of using HAProxy in front of AWS ELBs

I have been reading about various architecture stacks of larger websites and came across imgur's. They seem to have all of their subdomains (api.imgur.com, cdn.imgur.com, imgur.com...) all pointing to ...
Hurricane Development's user avatar
1 vote
1 answer
3k views

Amazon ELB doesn't clean up KeepAlive connections

AWS documentation mentions the following: To ensure that the load balancer is responsible for closing the connections to your instance, make sure that the value you set for the HTTP keep-alive ...
Arturs Vancans's user avatar
1 vote
0 answers
3k views

ELB health checks failing only for HTTPS

I am currently running a ELB (application type) on my Ubuntu single instance, it is set up to listen to HTTP and HTTPS. The HTTP target group health check is fine, however, the HTTPS target group ...
Derek's user avatar
  • 111
1 vote
0 answers
2k views

How to configure ELB failover with Active/Standby in same region

I'm new to AWS and have services running on each instances in same region. However due to the stability of service, I would need to setup 2 identical instances for Message and put them behind LB group....
Kevin Yang's user avatar
1 vote
0 answers
2k views

Handling the dynamic nature of AWS ELB ip addresses when using Apache httpd as a reverse proxy

I'm currently running several different services (mostly spring boot apps) behind Apache httpd in a Reverse proxy configuration. Each service is on an individual instance with an auto-scaling group ...
Robby Pond's user avatar
1 vote
0 answers
145 views

Domain/ELB returning 503 after linking it to wordpress EC2 instance

When I link a domain name to EC2 instance IP, my wordpress setup on the same machine returns 503 error. It runs fine when its not linked to any domain name. Update: I think I found the reason of ...
Utkarsh Mishra's user avatar
1 vote
0 answers
512 views

server stops sending SYN ACK after several normal connections

I have a few thousand devices behind a NAT talking to two servers. Each device is behind a local router (think modem/router), at which they get NATed to a private network that has thousands of these ...
user278837's user avatar
1 vote
0 answers
2k views

AWS ELB with HAProxy setup

We want to use a single ELB to handle the AWS free SSL/TLS certificate with wild card. For example we have n servers app1.example.com app2.example.com ... appn.example.com Each app has its own ...
Jeancarlo's user avatar
1 vote
0 answers
45 views

What are reasons to name (or not name) ElasticLoadBalancer resources in AWS CloudFormation?

The AWS CloudFormation (CFN) documentation allows naming of ElasticLoadBalancers (ELB). If I name an ELB, the following restrictions apply: Important If you specify a name, you cannot do updates ...
M. Glatki's user avatar
  • 2,084
1 vote
0 answers
837 views

Redirect loop - AWS ELB SSL Nginx

We have certificate installed on ELB provided by AWS certificate services, also a self signed certificate is configured on Nginx web server. Now, when user comes to https://www.example.org/ it says ...
Farmi's user avatar
  • 19
1 vote
0 answers
980 views

ELB, Nginx and redirecting http to https - 408 requests timeout

I have this configuration: The Amazon Elastic Load Balancer (ELB) routes port 80 to port 81 and port 443 to port 80 The cert is handled in ELB Nginx listens to port 80 and 81 Port 81 redirects to ...
ic3b3rg's user avatar
  • 111
1 vote
0 answers
347 views

Nginx DNS resolution for PHP Load Balancer

Our AWS configuration has an nginx server pointing all PHP requests to an ELB with multiple PHP servers in it. When the ELB itself scales, we lose connectivity within the next few hours as those old ...
ahamilton9's user avatar
1 vote
0 answers
756 views

WebSockets with TeamCity behind Amazon ELB

I'm setting up TeamCity behind a public ELB in Amazon. I am attempting to fix the WebSocket connection issue: Some users cannot use optimized web UI updates via WebSocket protocol. This is a ...
Thomas Farvour's user avatar