amazon web services tutorial - fall co… · amazon web services (aws) provides elastic vms you can...

16
| | Advanced Systems Lab Fall 2014 Amazon Web Services Tutorial

Upload: others

Post on 27-Jun-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Amazon Web Services Tutorial - FALL CO… · Amazon Web Services (AWS) provides elastic VMs You can start one or more virtual machines and pay for them per hour You can get a voucher

| | Platzhalter Logo/Schriftzug

(Anpassung im Folienmaster: Menü «Ansicht» «Folienmaster»)

Advanced Systems Lab – Fall 2014

Amazon Web Services Tutorial

Page 2: Amazon Web Services Tutorial - FALL CO… · Amazon Web Services (AWS) provides elastic VMs You can start one or more virtual machines and pay for them per hour You can get a voucher

| | Platzhalter Logo/Schriftzug

(Anpassung im Folienmaster: Menü «Ansicht» «Folienmaster»)

Amazon Web Services (AWS) provides elastic VMs

You can start one or more virtual machines and pay for them per hour

You can get a voucher from your TA which allows you to spend 100 USD

You still need to register with a credit card (which will be used if you spend more than 100 USD – so be careful)

General

Page 3: Amazon Web Services Tutorial - FALL CO… · Amazon Web Services (AWS) provides elastic VMs You can start one or more virtual machines and pay for them per hour You can get a voucher

| | Platzhalter Logo/Schriftzug

(Anpassung im Folienmaster: Menü «Ansicht» «Folienmaster»)

Go to aws.amazon.com and go to your account settings

Page 4: Amazon Web Services Tutorial - FALL CO… · Amazon Web Services (AWS) provides elastic VMs You can start one or more virtual machines and pay for them per hour You can get a voucher

| | Platzhalter Logo/Schriftzug

(Anpassung im Folienmaster: Menü «Ansicht» «Folienmaster»)

Go to Credits, and redeem the voucher.

Page 5: Amazon Web Services Tutorial - FALL CO… · Amazon Web Services (AWS) provides elastic VMs You can start one or more virtual machines and pay for them per hour You can get a voucher

| | Platzhalter Logo/Schriftzug

(Anpassung im Folienmaster: Menü «Ansicht» «Folienmaster»)

Go to AWS Management Console

Page 6: Amazon Web Services Tutorial - FALL CO… · Amazon Web Services (AWS) provides elastic VMs You can start one or more virtual machines and pay for them per hour You can get a voucher

| | Platzhalter Logo/Schriftzug

(Anpassung im Folienmaster: Menü «Ansicht» «Folienmaster»)

Go to AWS Management Console – Compute & Networking …and choose EC2 (Elastic Compute Cloud)

Page 7: Amazon Web Services Tutorial - FALL CO… · Amazon Web Services (AWS) provides elastic VMs You can start one or more virtual machines and pay for them per hour You can get a voucher

| | Platzhalter Logo/Schriftzug

(Anpassung im Folienmaster: Menü «Ansicht» «Folienmaster»)

Start new instances of virtual machines

Create new Amazon Machine Instance (AMI) from an existing instance

Create instances from your own AMI

Be prepared:

SSH-Key is required in order to be able to access the machine

Here you can:

Page 8: Amazon Web Services Tutorial - FALL CO… · Amazon Web Services (AWS) provides elastic VMs You can start one or more virtual machines and pay for them per hour You can get a voucher

| | Platzhalter Logo/Schriftzug

(Anpassung im Folienmaster: Menü «Ansicht» «Folienmaster»)

Launch a new instance

Page 9: Amazon Web Services Tutorial - FALL CO… · Amazon Web Services (AWS) provides elastic VMs You can start one or more virtual machines and pay for them per hour You can get a voucher

| | Platzhalter Logo/Schriftzug

(Anpassung im Folienmaster: Menü «Ansicht» «Folienmaster»)

Launch an existing AMI

Page 10: Amazon Web Services Tutorial - FALL CO… · Amazon Web Services (AWS) provides elastic VMs You can start one or more virtual machines and pay for them per hour You can get a voucher

| | Platzhalter Logo/Schriftzug

(Anpassung im Folienmaster: Menü «Ansicht» «Folienmaster»)

Live Demo…

Page 11: Amazon Web Services Tutorial - FALL CO… · Amazon Web Services (AWS) provides elastic VMs You can start one or more virtual machines and pay for them per hour You can get a voucher

| | Platzhalter Logo/Schriftzug

(Anpassung im Folienmaster: Menü «Ansicht» «Folienmaster»)

Instance Types

Page 12: Amazon Web Services Tutorial - FALL CO… · Amazon Web Services (AWS) provides elastic VMs You can start one or more virtual machines and pay for them per hour You can get a voucher

| | Platzhalter Logo/Schriftzug

(Anpassung im Folienmaster: Menü «Ansicht» «Folienmaster»)

Instance Types - pricing

Page 13: Amazon Web Services Tutorial - FALL CO… · Amazon Web Services (AWS) provides elastic VMs You can start one or more virtual machines and pay for them per hour You can get a voucher

| | Platzhalter Logo/Schriftzug

(Anpassung im Folienmaster: Menü «Ansicht» «Folienmaster»)

You can start and stop as many VMs as you need

BUT: You have no control where your instances physically live

(you can only chose the data center)

Network latencies are not predictable

You don’t know how other instances utilize the network

Keep in mind when interpreting benchmarks

AWS pros and cons

Page 14: Amazon Web Services Tutorial - FALL CO… · Amazon Web Services (AWS) provides elastic VMs You can start one or more virtual machines and pay for them per hour You can get a voucher

| | Platzhalter Logo/Schriftzug

(Anpassung im Folienmaster: Menü «Ansicht» «Folienmaster»)

This is up to you:

Maybe micro-instances is good for development / testing / debugging

Use small / medium / large for actual experiments

Machine size may depend on what you want to use it for (DB / Middleware / Clients)

PostgreSQL does not run well on small instances

100 USD should be enough for benchmarking

What instance type should I use?

Page 15: Amazon Web Services Tutorial - FALL CO… · Amazon Web Services (AWS) provides elastic VMs You can start one or more virtual machines and pay for them per hour You can get a voucher

| | Platzhalter Logo/Schriftzug

(Anpassung im Folienmaster: Menü «Ansicht» «Folienmaster»)

This is in general your problem!

If you use more than 100 USD, your credit card will be charged

BE CAREFUL! We will not reimburse you!

Whenever you start a VM you get charged for one hour

(even if the machine only runs for a few minutes)

To make effective use, you should set up your experiments and run as many

benchmarks as you can

Turn off the machines and analyze/optimize your system

Reiterate

I forgot to turn off a machine!

Page 16: Amazon Web Services Tutorial - FALL CO… · Amazon Web Services (AWS) provides elastic VMs You can start one or more virtual machines and pay for them per hour You can get a voucher

| | Platzhalter Logo/Schriftzug

(Anpassung im Folienmaster: Menü «Ansicht» «Folienmaster»)

AWS has very good online documentation

For using Amazon EC2 on Linux please visit:

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts.html

Further information