Questions tagged [amazon-elb]

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

Filter by
Sorted by
Tagged with
3 votes
3 answers
1k views

ELB, nginx, and multiple HTTPS applications

Let's say I have 3 different applications that all do HTTPS. Not all of them are high traffic so I run all 3 on the same "pool" of 3 EC2 instances. domain1.com/domain2.com/domain3.com all have their ...
Vic's user avatar
  • 294
3 votes
3 answers
7k views

How to temporarily redirect traffic from an Elastic Load Balancer?

I'm running an application on Elastic Beanstalk, an whenever I need to deploy a new version, I need to: deploy the version on Elastic Beanstalk, which takes a minute or so patch the database with any ...
BenMorel's user avatar
  • 4,607
15 votes
2 answers
32k views

What algorithm does Amazon ELB use to balance load?

I found this in the official ELB documentation By default, a load balancer routes each request independently to the application instance with the smallest load. but an article on Newvem says ...
kn330's user avatar
  • 837
1 vote
2 answers
684 views

What on my EC2 CentOS vm is dropping ELB HTTP packets but not direct connections?

I've got a simple webserver (apache only) running on CentOS's AMI on AWS inside a VPC. I've got both AWS Security Groups and iptables opened up for port 80, with no source requirements. I then set up ...
Peter's user avatar
  • 11
9 votes
2 answers
6k views

Amazon ELB HTTPS Not working

I'm trying to get HTTPS working with AWS ELB. I've been trying for about an hour, but no matter what i try, i just get connection timed out when connecting via HTTPS. HTTP works fine, but not HTTPS. ...
Aaron's user avatar
  • 93
5 votes
3 answers
2k views

How do you use ELB's support for PROXY protocol version 1 securely?

Amazon's Elastic Load Balancer supports PROXY protocol version 1. This allows the server behind the load balancer to determine the original source IP address of a client connection. However, the ...
David Schwartz's user avatar
1 vote
1 answer
2k views

Cloud formation - updating a stack behind an elb doesnt update the AMI

We are powering our AWS EC2 instances using cloud formation. We have 3 different stacks - testing, staging and production. Our workflow to update the images for any of the stacks is as follows: ...
Rob Squires's user avatar
6 votes
1 answer
9k views

Using an Elastic Load Balancer with a single EC2 instance on AWS

I'm using the AWS Free Tier, which gives me one free EC2 microinstance and one free Elastic Load Balancer, if I understand things correctly. I understand that usually ELBs are used when you are using ...
nucleon's user avatar
  • 263
1 vote
2 answers
7k views

Possible for HAProxy to perform a mix of SSL termination and passthrough?

I'm working on analyzing an intermittent load balancing failure in our application. Previously we had been using the AWS Elastic Load Balancer in the following configuration: HTTP 80 -> HTTP 80 ...
spicecat's user avatar
4 votes
3 answers
22k views

Temporarily disable ELB health check during backend deployment

We are using ELB for SSL termination, with only ONE backend. During deployment, the backend need to be restarted and it usually take several minutes to boot up. My questions: As I only have one ...
Ryan's user avatar
  • 6,011
28 votes
3 answers
40k views

Nginx Solution for AWS Amazon ELB Health Checks - return 200 without IF

I have the following code that is working on Nginx to keep the AWS ELB healthcheck happy. map $http_user_agent $ignore { default 0; "ELB-HealthChecker/1.0" 1; } server { location / { if ($...
Adam's user avatar
  • 515
5 votes
2 answers
2k views

What happens after you deregister an EC2 instance from Elastic Load Balancer?

Suppose I have a couple of web servers behind an ELB instance. I want to take down half of them to do software update. Suppose my application have some potentially longer requests (say take up to 30 ...
jz87's user avatar
  • 195
3 votes
2 answers
2k views

How is Amazon's Elastic Load Balancer Implemented?

Amazon's ELB looks interesting, but I have a hard time evaluating how reliable it might be. I don't have a good sense of how it's implemented or what it might do behind the scenes. If an ELB machine ...
Simplicius's user avatar
0 votes
1 answer
749 views

To properly run Nginx in front of Gunicorn, is it a bad idea to run them on the same machine?

I'm using AWS and currently use ELB (for load balancing and HTTPS termination) in front of two EC2 boxes that are running Gunicorn. For pretty clear reasons (routing certain requests for static files),...
Jack Chou's user avatar
3 votes
1 answer
731 views

Does AWS ELB apply the health check when adding nodes

My question is pretty simple, and I have been unable to determine this from the amazon documentation. When I attach a new node to an ELB (whether by having an auto scaling policy execute, or manually)...
BoomShaka's user avatar
  • 133
3 votes
1 answer
6k views

Amazon ELB not Passing "X-Forwarded-For" to IIS

ELB is setup to accept public HTTPS (443) connections and send them on as HTTP (80) to the EC2 instances. The EC2 instances run an IIS app that needs to know the user's IP address. According to ...
Chad Decker's user avatar
0 votes
2 answers
190 views

AWS Autoscaling Not Launching Correct Instance

I have an instance in AWS that I set up my entire environment (I'll call it my ready instance) on and is running perfectly. I then created a load balancer (ELB) with an autoscaling policy. When I ...
darksky's user avatar
  • 135
1 vote
1 answer
957 views

Amazon's ELB + Instances = High Latency?

I have a single instance running which is sitting behind their load balancer. When I use apache's benchmark utility and point it at the instance the response time is more often than not, under 50ms. ...
Joe O's user avatar
  • 19
1 vote
1 answer
2k views

Using htaccess with Elastic Load Balancer and Route 53 [closed]

I have transfered my DNS to Route 53 and currently use an alias record to point my www.domain.com and domain.com to my Elastic Load Balancer. Both work great but my problem is when I try to use an ...
user1011713's user avatar
0 votes
1 answer
790 views

Do AWS ELB, HAProxy or nginx drop the connection if a backend servers is down?

I wonder which ones of the following load balancers is able to detect an unavailable backend machine, and redirect the connection to another server without dropping the request: nginx AWS Elastic ...
Mark's user avatar
  • 462
2 votes
1 answer
5k views

Amazon ELB and multi domain on Nginx server

I have an EC2 instance running Nginx with several domains. My config starts like this: server { listen 80; #disable_symlinks off; server_name _; #allow few domains #Adding 'www.' to ...
Danny Valariola's user avatar
0 votes
3 answers
2k views

How to set Load Balancers onto EC2 (installed Apache with SSL)?

I am running several EC2 instances behind ELB load balancers. Can I insert my SSL certificate into Apache server without insert my cert into the load balancers? How should I set for the load ...
Electrorubbish's user avatar
3 votes
1 answer
7k views

ELB Instance Out of service

After implementing ELB and Autoscalling on Amazon AWS. There's a wierd issue happens and we don't know either the reason or the fix. We installed Auto Scalling configuration to add instance of AMI ID ...
Bassam Gamal's user avatar
1 vote
1 answer
144 views

Control ELB by Traffic load

We recently used Amazon AWS. Now our application is on the cloud. And we configured ELB with Auto Scalling and it works fine. We need to modify the ELB and control how it works. I checked all the ...
Bassam Gamal's user avatar
4 votes
3 answers
9k views

How to configure my Elastic Load Balancer to balance SSL traffic?

I'm totally lost so I apologize if I'm not making sense. I need to create a load balancer in EC2 for our application servers. I'm trying make the ELB balance traffic over SSL (8443). However, it's ...
Classified's user avatar
5 votes
2 answers
17k views

Is there a limit on the length of URLs when using Amazon ELBs? If so, is there a way to increase it?

We appear to be encountering an error due to Amazon ELBs truncating a long (over 1K characters) URL. I have searched through the usual suspects, but can't find any discussion of URL length limits for ...
Jordan's user avatar
  • 153
0 votes
1 answer
238 views

"Big picture" to use Amazon load balancer solution for blog

I have a client with a popular Wordpress blog that experiences occasional short-term traffic spikes (when the site is promoted on national TV). The blog is already hosted on an Amazon EC2 instance, ...
Eric's user avatar
  • 1,137
6 votes
2 answers
35k views

How to ping / traceroute an AWS ELB

Amazon's load balancers have a network security policy which swallows ICMP packets for both ping and traceroute. It is listed as security group amazon-elb/amazon-elb-sg. Personally I find these ...
Leopd's user avatar
  • 1,897
0 votes
1 answer
1k views

Automatically remove instance from ELB on server stop

How to automatically remove an instance from its LoadBalance (ELB) when you stop the instance? I've tried to create a shutdown script and put it on chkconfig, but it is not working: #!/bin/bash # ...
Daniel Cukier's user avatar
0 votes
2 answers
2k views

AWS Elasticache PHP Sessions with ELB and Web Servers at different Data Centres

I'm running an AWS Load Balancer with Web Servers at different Data Centres. I need to start using PHP Sessions on Elasticache to Centralize Session Management. I can create an a 2 node Elasticache ...
user1105192's user avatar
2 votes
2 answers
3k views

How to redirect all HTTP traffic to HTTPS for a Django 1.4 application running on an EC2 with nginx/uWSGI behind ELB with an SSL cert

I would like to know how to put my entire django site behind HTTPS. If anyone tries to come via HTTP I want that user to be redirected to HTTPS. Currently, firefox is giving me the error "Firefox has ...
Binary Maze's user avatar
1 vote
1 answer
478 views

strange lines in nginx log

I'm running nginx 1.2.6 behind amazon elb. Periodically I see the following lines in nginx access.log: 10.28.135.252 - - [14/Jan/2013:14:20:07 +0000] "-" 400 0 "-" "-" "-" 10.28.135.252 - - [14/Jan/...
Zaar Hai's user avatar
  • 507
1 vote
1 answer
2k views

How to install UCC GoDaddy SSL Certificate on Amazon EC2 ELB

I've read through this: Install SSL on Amazon Elastic Load Balancer with GoDaddy Wildcard Certificate but am still a bit unsure. I have a subdomain: platform.mysite.com that is pointed to an ELB in ...
Shamoon's user avatar
  • 901
1 vote
1 answer
834 views

Redirect to HTTPS from my Amazon Elastic Load Balancer

I have a rails app on 2 EC2 Instances running nginx behind an Amazon Elastic Load Balancer. I'd like to force HTTPS, which was working fine before I added in the Load Balancer. Now I can't quite ...
Adam's user avatar
  • 113
2 votes
2 answers
6k views

Reverse Proxy Server Cloud Architecture (AWS + nginx)

Currently I cache responses using nginx + fastcgi. I'm in the process of moving my app to AWS. I'm architecting a horizontally scaled approach, but trying to determine where best to put nginx + ...
Jason McCreary's user avatar
0 votes
3 answers
6k views

CloudFront Dynamic Content & Apache using Multiple Virtual Hosts

I've tried to setup CloudFront to point to an Elastic Load Balancer. I can see the requests are reaching the web server (which as multiple Virtual hosts configured) however the requests always end up ...
Adam's user avatar
  • 515
4 votes
1 answer
2k views

How to setup nginx to redirect to https for certain host when behind an SSL termination load balancer

Hello I have a web server (running nginx) in EC2 behind an ELB (load balancer) which terminates SSL connections. If there is a request to www.domain.com it will go http to the ELB and be passed to ...
mp3tricord's user avatar
0 votes
1 answer
163 views

AWS - point my zone apex (mydomain.com versus www.mydomain.com) to Elastic Load Balancer

I'm having trouble setting up an Route53 Apex Zone that point to an ELB and works on www and non-www domain names. The domain name is datingjapan.co In Route53 I have clicked new record set added ...
Adam's user avatar
  • 515
0 votes
1 answer
703 views

Odd behavior of setting REMOTE_ADDR between Apache, Nginx, and AWS ELB

I have encountered a strange issue and am curious if others have encountered this as well. and if there is absolutely anything that can be done.. We have a set up where we have multiple AWS EC2 Linux ...
Chris Drumgoole's user avatar
0 votes
1 answer
580 views

Time between AWS Notifying of Scale Down and Terminating instance

Here is the scenario, there are multiple EC2 instances behind a load balancer. When traffic dies down, the SCALE_DOWN policy is triggered from a CloudWatch alarm. What I would like, is for the ...
SteveEdson's user avatar
  • 1,549
7 votes
2 answers
3k views

How can I setup SPDY with Jetty behind Amazon's ELB?

I want to deploy SPDY, but I'm using Amazon's ELB TCP routing. The ELB also handles the secure connections for us. How can this be configured on the jetty side?
arturnt's user avatar
  • 173
0 votes
1 answer
222 views

Guaranteed HTTP forwarding frontend service (reliable cloud load balancer) [closed]

My situation is fairly simple and, I guess, it's encountered fairly often. I have several projects which all look pretty much the same - a single project consists of: Static content servers - there ...
GreyCat's user avatar
  • 101
7 votes
3 answers
10k views

Force HTTPS with AWS Elastic load balancer

I need to redirect all incoming HTTP traffic to HTTPS on my elastic load balancer. I tired using Apache mod_rewrite: RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule !/...
panos2point0's user avatar
0 votes
2 answers
321 views

Single AWS Elastic Load Balancer to multiple EC2 instance pools?

Does AWS Elastic Load Balancer support having a single load Balancer to multiple EC2 Instance Pools? I have three domains: www.example.com api.example.com stats.example.com And I'd like to serve ...
Alan's user avatar
  • 530
1 vote
1 answer
2k views

Autoscaling EC2 with NFS mounts

I'm trying to set up a shared filesystem on EC2 and I've read tutorials such as this: http://blog.ronaldmccollam.com/2012/07/configuring-nfs-on-ubuntu-in-amazon-ec2.html In step 2 it talks about ...
Jamie Taylor's user avatar
5 votes
3 answers
2k views

AWS ELB poor performance

We're using ELB for SSL termination. Our applications run on EC2 instances behind ELB using HTTP. We're monitoring the application response times and performance hit when going through the ELB seems ...
Berkay Mollamustafaoglu's user avatar
1 vote
1 answer
1k views

Load balancer with Varnish round robin

I'm looking at a setup of an existing application. This application makes use of Amazon's elastic load balancer and then it goes through varnish. Within varnish, we are making use of the round robin ...
Abs's user avatar
  • 1,609
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
0 votes
1 answer
203 views

Amazon ELB and use of address / server names across multiple servers

I am setting up Nginx servers behind the ELB. I set up so that api.app.com points to an ELB. I wonder which addresses I should use for remote connections, Nginx settings etc.. 1) For example, in ...
Stpn's user avatar
  • 145
0 votes
1 answer
217 views

When using a load balancer how do find out what ec2 instance you're accessing from the browser?

Is there a way to determine the ip address of the ec2 instance you're accessing from the browser?
user784637's user avatar
  • 1,592

1
8 9
10
11 12