What is the difference between Amazon Linux and RedHat Enterprise Linux on AWS EC2?

33

3

I am very new to this and I don't even know if I should ask this question here or on Stackoverflow or ServerFault.

The Question

I wish to set up a EC2 instance on Amazon Web Services. My understanding is RedHat Enterprise Linux(RHEL) cost $0.21/hour for an m1.Small more than Amazon Linux (which is free). Is my understanding correct? Is there any difference between the performance of RHEL and Amazon Linux? If I am looking for a free Linux which one should I go with in AWS EC2?

Gaurav Agarwal

Posted 2012-06-20T11:14:03.283

Reputation: 851

Answers

16

Red Hat pricing details are here http://aws.amazon.com/rhel/ and Amazon Linux is here: http://aws.amazon.com/amazon-linux-ami/; as you say, RHEL implies additional cost, whilst Amazon Linux involves 'no additional charge' beyond the charges for running instances and related services.

Amazon Linux, like CentOS, is based on RHEL -- it is fundamentally a minimal/basic install of Red Hat Enterprise Linux (hence optimised for the purpose). Amazon are currently offering a year's free Amazon EC2 Micro Instance for new customers within the 'free usage tier', as per http://wpmu.org/would-you-like-a-free-server-for-a-year/. If you would like to try EC2 for free, because of the limited memory/resource availability for the 'Micro Instance', trying Amazon Linux makes sense.

Soz

Posted 2012-06-20T11:14:03.283

Reputation: 1 081

12

@jarmond's comment is not entirely accurate. The page claimed no affiliation with RedHat, Inc and stated that it is not RHEL, which is technically accurate. It stated that for legal reasons (however, the legal situation is different now). CentOS was and is derived from RHEL. Read more about it here: http://centos.org/about/.

– Shawn J. Goff – 2014-07-23T19:27:33.643

2

According to CentOS (http://www.centos.org/modules/smartfaq/faq.php?faqid=13), CentOS is not related to RHEL. It may well have sprung from the original open source that RedHat also used before RedHat went commercial (and later introduced RHEL) but CentOS claim no relationship to RH or RHEL.

Amazon Linux is presumably based on CentOS and not RH in any form, which is why there are no charges beyond EC2 instance costs when you launch an Amazon Linux AMI.

– jarmod – 2013-03-17T19:01:13.537

At one time Amazon Linux was based on RHEL/CentOS, though it's diverged so significantly that it is in effect a separate distribution. – Michael Hampton – 2013-10-18T04:47:39.190

9

Usually, the price you pay for the "Enterprise" versions (RHEL, SLES) isn't for a bonus in performance, but for a bonus in service. For example, a certain to-remain-unnamed provider of "enterprise" databases won't offer you any support unless you are running the database on a certified Linux (i.e., SLES, RHEL). If you don't have support contracts to worry about, there's little to be had in the "enterprise" distributions that is worth the price.

IMVHO.

DevSolar

Posted 2012-06-20T11:14:03.283

Reputation: 3 860

1

This is arguably the most important distinction between RHEL and CentOS/Amazon Linux - Support. The AWS FAQ on Red Hat (https://aws.amazon.com/partners/redhat/faqs/) is worth reading, but the salient points in it are that RHEL instances are covered under AWS Premium Support, and AWS escalates to Red Hat on your behalf.

– KJH – 2016-09-09T01:46:25.933

1I would side with Amazon Linux being superior from a performance standpoint simply because Amazon has worked on the code to tweak it specifically for their product. I'm sure they both run well, the price points are likely just for support purposes like DevSolar mentions. I've only used windows OS's in EC2, so I can't vouch for actual performance of those two. – Melikoth – 2012-06-20T11:42:30.103