getting started with amazon ec2 - computer science1 ec2 compute unit (1 virtual core with 1 ec2...

30
Getting Started with Amazon EC2 David J. Malan [email protected] www.cs50.net

Upload: others

Post on 02-Mar-2020

16 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

Getting Started with Amazon EC2

David J. [email protected]

www.cs50.net

Page 2: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

1

Self-service, Prorated Super Computing Fun!“The New York Times has decided to make all the public domain articles from 1851-1922 available free of charge. These articles are all in the form of images scanned from the original paper. In fact from 1851-1980, all 11 million articles are available as images in PDF format. To generate a PDF version of the article takes quite a bit of work — each article is actually composed of numerous smaller TIFF images that need to be scaled and glued together in a coherent fashion. . . . I then began some rough calculations and determined that if I used only four machines, it could take some time to generate all 11 million article PDFs. But thanks to the swell people at Amazon, I got access to a few more machines and churned through all 11 million articles in just under 24 hours using 100 EC2 instances . . . . (In fact, it work so well that we ran it twice, since after we were done we noticed an error in the PDFs.)”

Page 3: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

2

Virtualization

http://communication.howstuffworks.com/server-virtualization1.htm

Page 4: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

3

VirtualizationXenVMware

Workstation, Fusion, Server, ESXi, vSphere

ParallelsWorkstation, Server for Mac, Virtuozzo

Microsoft Hyper-V, Virtual PC

SunVirtualBox

QEMUFreeVPSVirtual Iron. . .

Page 5: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

4

VirtualizationFull VirtualizationParavirtualizationOS-Level Virtualization

Page 6: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

5http://publib.boulder.ibm.com/infocenter/eserver/v1r2/topic/eicaz/eicaz516.gif

Xen

Page 7: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

6

Virtual Private Servers (VPSes)LinodeServIntTekTonicVPSLAND. . .

http://www.servint.net/supervps.php

Page 8: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

7

Managed ColocationRackspace. . .

http://www.rackspace.com/solutions/managed_hosting/configurations/index.php

Page 9: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

8

CloudsAmazon Elastic Compute Cloud (Amazon EC2)Google App EngineMicrosoft Azure Services Platform. . .

Page 10: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

9

Amazon Web Services (AWS)Amazon Elastic Compute Cloud (Amazon EC2)Amazon Simple Storage Service (Amazon S3)Amazon SimpleDBAmazon CloudFrontAmazon Simple Queue Service (Amazon SQS)Amazon Elastic MapReduce

Page 11: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

10

cloud.cs50.net

Page 12: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

11

JargonAMIInstanceEBS Volume. . .

Page 13: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

12

AMIsDebianFedoraGentoo LinuxRed Hat Enterprise LinuxOpenSolarisopenSUSE LinuxOracle Enterprise LinuxUbuntu LinuxWindows Server 2003. . .

Page 14: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

13

Standard InstancesSmall Instance (m1.small)

1.7 GB memory1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit)160 GB instance storage (150 GB plus 10 GB root partition)32-bit platform

Large Instance (m1.large)7.5 GB memory4 EC2 Compute Units (2 virtual cores with 2 EC2 Compute Units each)850 GB instance storage (2×420 GB plus 10 GB root partition)64-bit platform

Extra Large Instance (m1.xlarge)15 GB memory8 EC2 Compute Units (4 virtual cores with 2 EC2 Compute Units each)1,690 GB instance storage (4×420 GB plus 10 GB root partition)64-bit platform

Page 15: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

14

High-CPU InstancesHigh-CPU Medium Instance (c1.medium)

1.7 GB of memory5 EC2 Compute Units (2 virtual cores with 2.5 EC2 Compute Units each)350 GB of instance storage32-bit platform

High-CPU Extra Large Instance (c1.xlarge)7 GB of memory20 EC2 Compute Units (8 virtual cores with 2.5 EC2 Compute Units each)1690 GB of instance storage64-bit platform

Page 16: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

15

Regions + Availability ZonesUnited States

us-east-1aus-east-1bus-east-1c

Europeeu-west-1aeu-west-1b

Page 17: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

16

On-Demand Instances

http://aws.amazon.com/ec2/

Page 18: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

17

Reserved Instances

http://aws.amazon.com/ec2/

Page 19: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

18

Data Transfer

http://aws.amazon.com/ec2/

Page 20: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

19

Data TransferAvailability Zone Data Transfer

$0.00 per GBRegional Data Transfer

$0.01 per GB in/outPublic and Elastic IP Data Transfer

$0.01 per GB in/outElastic IP Addresses

No cost while in use$0.01 per non-attached Elastic IP address per complete hour$0.00 per Elastic IP address remap – first 100 remaps / month$0.10 per Elastic IP address remap – additional remap / month over 100

Page 21: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

20

EBS Volumes + Snapshots

http://aws.amazon.com/ec2/

Page 22: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

21

Elastic IP AddressesNo cost while in use$0.01 per non-attached Elastic IP address per complete hour$0.00 per Elastic IP address remap – first 100 remaps / month$0.10 per Elastic IP address remap – additional remap / month over 100

Page 23: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

22

Cost Less than $15 per Student

Page 24: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

23

AWS Simple Monthly Calculatorhttp://calculator.s3.amazonaws.com/calc5.html

Page 25: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

24

ConcernsTimeNo _______PEBKAC“cloud is laggy”“Cloud is wicked laggy”Bandwidth Costs“Lightning Strike Triggers Amazon EC2 Outage”

Page 26: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

25

CS 50 in a Box

Page 27: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

26

ResourcesGetting Started Guide

http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/

User Guidehttp://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/

Developer Guidehttp://docs.amazonwebservices.com/AWSEC2/latest/DeveloperGuide/

. . .

Page 28: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

27

AWS in Educationhttp://aws.amazon.com/education/

Educators

Researchers

Students

Education IT

Page 29: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

28

What’s Next?Q&AGetting Your Hands DirtyGetting Your Hands Dirtier

Page 30: Getting Started with Amazon EC2 - Computer Science1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit) 160 GB instance storage (150 GB plus 10 GB root partition) 32-bit platform

Getting Started with Amazon EC2

David J. [email protected]