Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I launched a t1.micro instance running Apache and MySQL servers on Ubuntu. Basically I'm using it to host my photo sharing app that may have huge random spikes in terms of visitors.
How does AWS go about it?
Will the instance automatically upgrade to appropriate horse power to keep up with demand and growing storage demands?
No, you have to manually make your instance more powerful by first making sure it is in the stopped state (this requires EBS volumes or you'll lose your data), then going to the AWS console, right click your instance and select 'Change Instance Type'.
If you are interested in a more automated approach, I suggest an Elastic Load Balancer with an Auto-scaling policy. With Auto-scaling, Amazon will spin up or down new instances based on set points that you provide (i.e. CPU usage reaches 80% for 10 minutes).
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
Recently, I've done some comparison between using Database as a service (e.g. CloudSQL on GCP and RDS/Aurora on AWS) and using VMs (e.g. Compute Engine on GCP and EC2 on AWS).
It turns out with the same type of machine/server, Database as a service is costing double as the price of setting us own VMs.
For example, on AWS, the r5.4xlarge EC2 instance costs $1.208/hour; while, the r5.4xlarge RDS costs $2.28/hour. Worse than that, Aurora costs $2.8/hour.
On GCP, the n1-high-mem-16 compute engine instance costs $686.33/month; while the n1-high-mem-16 CloudSQL costs $1387.98/month.
Why don't people spin up an EC2 instance or Compute Engine instance and set up their own MySQL?
It would be appreciated for you to write down your reasons of choosing the database as a service (CloudSQL or RDS or Aurora) than setting up a database on VMs?
I can't generalise, but at one of the previous companies I worked for, they did a thourough analysis.
They included the cost of people needed to setup the database in high-available mode, added the continuous costs of backups and keeping up-to-date with security patches, which needed to be prepared in advance for every patch.
When you have a managed service it's an all-in-one package, and it was actually cheaper or less risky than having to hire a (part-time) DBA.
They also calculated in the adoption rate of innovation. When they needed e.g. MongoDB or Redis, a managed service could be adopted in a week instead of having to wait for several months for someone to analyse all risks and options to set it up in a High-Available state and coming up with a Security plan.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
We can see spot price for different availability zones in a specific region in the EC2 web console. However there is only one price shown on the official web site for a specific instance type in a specific region. What is the relationship between spot price that is displayed on official site and the these shown in the web console (for different zones)?
If you are referring to this page: http://aws.amazon.com/ec2/spot-instances/
Amazon states: 'The following table displays the Spot Price per Region and instance type (updated every 5 minutes). In addition to Linux/Unix and Windows, we also offer Spot Instances for Amazon EC2 running SUSE Linux Enterprise Server. Spot Instances are not currently supported in the AWS GovCloud Region.'
You can select the region using the drop down selector. The prices are updated every 5 minutes.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Using Ejabberd in EC2 as an XMPP server to send real-time information to clients...
How it is possible to set up clustering so that if the load on the server gets too much, Auto Scaling will create a new EC2 instance that is part of the Ejabberd cluster?
The documentation I've read suggests that you must already have the machines and manually configure each new one to be added to the cluster. Surely though you don't have to be running redundant EC2 instances just in case?
You'll need to do this manually, however a single ejabberd server can handle quite a lot of traffic. Each server adds a significant amount of available connections to your cluster, so it's not a common task.
That said, I'd really be careful running ejabberd in EC2. I've been doing it for about a year, and we fight mnesia network partitioning pretty regularly. Clustered ejabberd servers don't work very reliably in the EC2 network.
I am installing an infrastructure based on EC2 + ejabberd and have read this post. Do not you recommend? I planned to use as backend mysqlk (in AWS RDS) for tables that store large amounts of data. What do you think?
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I am not sure I understand the prices for EC2 instances.
Amazon writes:
Pricing is per instance-hour consumed for each instance, from the time an instance is launched until it is terminated.
So I will get billed for 100% a month, unless I terminate this instance completely and lose all the data on the instance-store? This confuses me, as the Amazon cloud is said to be a cheaper alternative. But for a Large instance I end up with about $250/month, which is quite expensive compared to other, non-cloud companies.
you will be billed 24 instance-hours per day if your instance (server) is online 24/7.
This is exactly the same as Windows Azure Web instances.
The be billed just for what I use, it's more about Files and Database, as the server should be always up and running.
If you compare VPS hosting companies with this prices, you will see Amazon/Windows are cheaper, keep in mind that you will have remote access to that server no matter what OS you are using (windows or Linux distro).
You can stop your instance can keep it's volumes. In that case you pay only for the storage while the instance is not running.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
So, I have been playing around with Amazon Cloud (AWS) and I am trying to figure out how to get files on to all server's if they are load balanced.
At first I thought I could tie 3 different instances to a load-balancer and then have each instance utilize the same volume. That way all I would have to do is update the one volume with the recent build of the site and each instance would then access that. However, I have read that you can't share volumes across instances.
So what is the solution? Would I have to have the three instances all with the same data, and a forth that I could update? Then the forth would replicate the data across the other three.
Just trying to figure out how to update update the production files, and have all servers that are handling the load to pull in the most recent code base.
Yes all servers need to have identical content. You could do this by creating an NFS share or similar, and mounting it at the same point on each server. But apparently a decent workaround is to create snapshots of an EBS volume and then mount them on each instance. See http://linuxforlovers.wordpress.com/2009/04/11/sharing-amazon-elastic-block-store-among-multiple-instances/ for more details. Every time you want to commit your changes, you commit to the EBS volume only.