Questions tagged [amazon-elb]

Amazon Elastic Load Balancing (ELB) automatically distributes incoming application traffic across multiple Amazon EC2 instances.

Amazon Elastic Load Balancing automatically distributes incoming application traffic across multiple Amazon EC2 instances. It enables you to achieve even greater fault tolerance in your applications, seamlessly providing the amount of load balancing capacity needed in response to incoming application traffic. Elastic Load Balancing detects unhealthy instances within a pool and automatically reroutes traffic to healthy instances until the unhealthy instances have been restored. Customers can enable Elastic Load Balancing within a single Availability Zone or across multiple zones for even more consistent application performance. Elastic Load Balancing can also be used in an Amazon Virtual Private Cloud (“VPC”) to distribute traffic between application tiers.

See more at the product page.

2698 questions
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
5 answers

Spring Boot and ebextensions

I'm trying to add an .ebextensions folder to the root level of my jar to be deployed to AWS elastic beanstalk. My folder structure is: main: --src --resources --.ebextensions When I build the jar my .ebextensions gets placed on the classpath of…
11
votes
2 answers

Why is rails constantly sending back a Set-Cookie header?

I'm experiencing issues with an elastic load balancer and varnish cache with respect to cookies and sessions getting mixed up between rails and the client. Part of the problem is, rails is adding a "Set-Cookie" header on with a session id on almost…
Tommy Devol
  • 155
  • 1
  • 6
11
votes
1 answer

CloudFront redirect all requests with path prefix

I have a static web site which makes requests to an API server. I'm hosting this static pages with S3 and I'd like to use CloudFront to redirect the api calls to the api server. Api calls can be distinguished by a path prefix of…
cscan
  • 3,684
  • 9
  • 45
  • 83
11
votes
2 answers

HTTP 504 errors returned by ELB even when hosts are healthy and able to serve request

I have a service which is deployed on Amazon Web Services (AWS), specifically 2 instances behind an Elastic Load Balancer (ELB). Availability zones are selected as all three us-west-2a,b,c but only 2 of the above 3 zones have instances running in…
Harshdeep
  • 5,614
  • 10
  • 37
  • 45
11
votes
5 answers

Mysterious Http 408 errors in AWS elasticbeanstalk-access_log

The elasticbeanstalk-access_log log-file in our AWS EBS instances are full of 408 errors, like these: 172.31.1.56 (-) - - [16/Mar/2016:10:16:31 +0000] "-" 408 - "-" "-" 172.31.1.56 (-) - - [16/Mar/2016:10:16:31 +0000] "-" 408 - "-" "-" 172.31.1.56…
11
votes
3 answers

AWS autoscale ELB status checks grace period

I'm running servers in a AWS auto scale group. The running servers are behind a load balancer. I'm using the ELB to mange the auto scaling groups healthchecks. When servers are been started and join the auto scale group they are currently…
Ofer Velich
  • 1,959
  • 4
  • 19
  • 24
11
votes
2 answers

How to instruct an AWS ELB to consider a health check that returns a 403 code as successful?

I have a Jenkins CI server behind in an private EC2 VPC subnet, and in order to make it accessible from the outside world I've set up an ELB (that also handles the HTTPS security certificate using IAM, but that's just the rationale of why I am doing…
fortran
  • 74,053
  • 25
  • 135
  • 175
11
votes
2 answers

How do I use ELB's HealthyHostCount for monitoring in CloudWatch?

We have three EC2 instances—one in each availability zone (AZ) in the eu-west-1 region. They are loadbalanced using ELB. We'd like to monitor how many instances are registered at the loadbalancer, using CloudWatch. The problem ist: I don't really…
awendt
  • 13,195
  • 5
  • 48
  • 66
10
votes
2 answers

Issue with HTTPS to HTTP redirection by Elastic Load Balancer to Tomcat server

I have a ELB (Amazon Elastic Load Balancer) configured to load balance end users requests on HTTPS, on the backend I have my application running on Tomcat server which is configured on HTTP. So when my end users makes a request to the application…
10
votes
2 answers

Laravel serving assets insecurely with AWS

With my new project, when I deploy my app to my https:// domain, every {{ asset() }} and every {{ route() }} is being served over http (which causes "mixed content" security issues in browsers). I'm using AWS with a load-balanced Elastic Beanstalk…
10
votes
3 answers

What's the point of an AWS ELB setup with Cloudfront, rather than a single EC2 instance?

If AWS Cloudfront caches your website content for visitors, what’s the point of also setting up an ELB, instead of a standard, single web-server EC2 instance? As surely, it’s only a few Cloudfront connections that will communicate with the server.
10
votes
4 answers

HTTP to HTTPS Redirects for AWS ELB and Tomcat7 server

I have one subdomain(test.XXXX.com) pointed to AWS ELB that accepts HTTP(80) and HTTPS(443) requests. I have configured SSL certificated for for 443 for HTTPS connection. I have tried doing HTTP to HTTPS redirects at Tomcat level by changing web.xml…
MasterCode
  • 975
  • 5
  • 21
  • 44
10
votes
1 answer

AWS application load balancer listener rule paths

Configuring an application load balancer. I have 3 separate target groups and about 30 different paths I'd like to filter on. When filling out path pattern what are the possible values? Given it's called "pattern" gives the impression it can accept…
timothyclifford
  • 6,799
  • 7
  • 57
  • 85
10
votes
2 answers

AWS Application Load Balancer : Request Header Or Cookie Too Large

AWS's new Application Load Balancer is throwing an error : 400 Bad Request, Request Header Or Cookie Too Large, awselb/2.0 How do i increase the size in aws-elb. It was working fine with the classic load balancer.
Kechit Goyal
  • 3,952
  • 3
  • 20
  • 21