Live data from Hacker News

Things You Should Know About AWS

highscalability.com

11–20 of 51 posts

Re: Things You Should Know About AWS

#11
post #4

This is great and all, but I'd love to see a community wiki / discussion area for AWS tips, tricks, and gotchas. Something like Quora crossed with Wikipedia, just for AWS. Is anyone aware of such a thing? If not, any advice for starting one?

Sounds like something ideal for a StackExchange site.

Surprised it doesn't exist already.

Re: Things You Should Know About AWS

#13
post #10
post #8

Earlier quoted context omitted.

That's the AWS CLI (Command Line Interface), available at http://aws.amazon.com/cli/ .

Is there a huge difference with s3cmd?

In my experience the performance of the new AWS CLI is roughly the same as s3cmd as long as you are using a version of s3cmd with multi-part upload included.

Re: Things You Should Know About AWS

#15
post #10
post #8

Earlier quoted context omitted.

That's the AWS CLI (Command Line Interface), available at http://aws.amazon.com/cli/ .

Is there a huge difference with s3cmd?

Yeah, s3cmd is for interacting with s3.

aws-cli lets you interact with 23 different AWS services (it's really awesome).

Re: Things You Should Know About AWS

#16
> Stripe your RDS disks for better performance

This is a fun hack to perform, but it opens you up to another problem: latency on any of the striped EBS volumes will lag out the entire striped array.

Attempts to mitigate this problem (including setting up raid 10) work in the short term, but it really is easier to just purchase a guaranteed iops volume if you want to run a database on EC2.

Re: Things You Should Know About AWS

#17
Description of noisy neighbor problem #6 lacks some depth.

AWS noisy neighbors problem is very often misunderstood. CPU steal time under linux does NOT mean that somebody is stealing your CPU. It simply means that you wanted to use CPU and hypervisor has given it to another instance. This may happen because you have exceeded your quota or scheduling algorithm selected another pending instance at this very moment and it would give CPU back to you a bit later. In the end in both cases your instance gets fair share.

Great detailed explanations of steal time: https://support.cloud.engineyard.com/entries/22806937-Explan... and: http://www.stackdriver.com/understanding-cpu-steal-experimen.... The latter article is mentioned by OP but seems to be not fully read/understood.

Why does killing and restarting instance help? It likely moves instance to different hardware node with less active neighbors. When your neighbor is not active your instance can use CPU idle cycles of your neighbor! You sort of become the noisy one. Still hypervisor would prevent it once neighbor starts to fully utilize his CPU quota and you are back to square one.

Amazon does not oversubscribe CPU according to their CTO: http://itknowledgeexchange.techtarget.com/cloud-computing/am...

Amazon specifically states that t1.micro instances do not guarantee CPU performance: "Micro instances are a very low-cost instance option, providing a small amount of CPU resources. Micro instances may opportunistically increase CPU capacity in short bursts when additional cycles are available. They are well suited for lower throughput applications and websites that require additional compute cycles periodically, but are not appropriate for applications that require sustained CPU performance."

While CPU sharing is pretty well documented noisy neighbor problem still exists for network and disk resources being shared by multiple instances on the same hardware node. The only way to detect these problems is to track network throughput/loss rate for network and IO stats for disk.

You are guaranteed to avoid noisy neighbors CPU problem by using AWS dedicated instances: http://aws.amazon.com/dedicated-instances/

I work for APM ( Application Performance Management) vendor , I have no business praising AWS.

[Edit:spelling and clarity]

[Edit2: changed CPU scheduling description]

Re: Things You Should Know About AWS

#18
post #4

This is great and all, but I'd love to see a community wiki / discussion area for AWS tips, tricks, and gotchas. Something like Quora crossed with Wikipedia, just for AWS. Is anyone aware of such a thing? If not, any advice for starting one?

Sounds like something ideal for a StackExchange site.

My problem with StackExchange sites is that they're not that good as a reference. There are lots of great questions and answers (and lots of repetition thereof) but as a place to collate community knowledge about a topic they fall short.

Something like a wiki might be better, I suppose.

Re: Things You Should Know About AWS

#19
Does anyone understand the point they are making in #9 about VPC?

Are they suggesting using HAProxy in your public subnet and ELBs in your private subnets? Is this their reference to avoiding using a NAT box (actually PAT)? Don't you still need a HAProxy box in each of your AZs?

Re: Things You Should Know About AWS

#20
post #10
post #8

Earlier quoted context omitted.

That's the AWS CLI (Command Line Interface), available at http://aws.amazon.com/cli/ .

Is there a huge difference with s3cmd?

In terms of CLIs for Amazon S3, 'aws s3' is a collection of commands that are almost equivalent to 's3cmd' functionality, while 'aws s3api' is a collection of commands to interact directly to API using corresponding action names.
Post reply on HN