Whiskey
Whiskey

Reputation: 83

ELB AWS response slower than Nginx

Hey so we are currently running our production environment on Rackspace and are planning to migrate over to AWS.

On rackspace we have

server 1 (nginx as reverse proxy) --> server 2, server 3 and server 4

On AWS we have:

ELB -> server 1 (nginx) --> server 2, server 3 and server 4

Now the speed at which plain js files are downloaded is 2 or 3 times slower on AWS. Is it possible the ELB config is causing this? Is there a way to increase the bandwidth? Or should we use ELB as a reverse proxy?

Upvotes: 0

Views: 642

Answers (1)

Rodrigo Murillo
Rodrigo Murillo

Reputation: 13632

I have a similar setup, and have no issues with latency. A cold ELB will run slow, so if its a new setup, then you will get more latency.

Regarding the proxy behind the ELB on AWS. I would remove that. The ELB needs to register/listen to each individual server, so that autoscaling works. If you only connect ELB<=>proxy, then the ELB will not scale correctly, as it does not know the health status of the servers in the cluster.

Upvotes: 3

Related Questions