D
D
Dmitry2013-02-08 16:29:28
Amazon Web Services
Dmitry, 2013-02-08 16:29:28

Amazon EC2 - how to EASILY set up traffic distribution across instances?

There is a site on Amazon EC2, it can hardly cope with the load (at peak CPU load of 95-100% and the site responds for a long time). I would like to create a COPY of the current instance with the same configuration and distribute traffic evenly between two instances (theoretically, then the CPU will be loaded only by 45-50% on each).

I searched the Internet for articles about this, but I didn’t quite understand what to use - AutoScalling or Elastic Load Balancers?

In all articles, for setting up both the first and second, a whole bunch of commands are used on the command line, half of which are not clear and it’s scary to break everything at all. Is it really possible to distribute the load over 2 instances only through the settings on the command line and can't it be done VISUALLY on the site in the Amazon Console?

Please tell me how to distribute traffic to 2 instances (and how to make a copy, etc.).

There will be no changes to the instances, this is just a demo site, so they will always be completely identical.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Puma Thailand, 2013-02-09
@opium

autoscale is needed to extinguish the second instance when there is no load and raise it when there is.
In your case, isn't it easier to upgrade the instance type to something more powerful?

T
Timur Batyrshin, 2013-11-14
@erthad

Autoscaling is adding/destroying instances depending on the load. Six months ago, it was configured only through console utilities, yes.

You most likely need to make an AMI from an instance and launch another instance. Then create an Elastic Load Balancer (this is a simple haproxy load balancer) and add them there. All this can be done via the web, as far as I remember.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question