amazon web services tutorial - fall co… · amazon web services (aws) provides elastic vms you can...
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](https://reader033.vdocuments.mx/reader033/viewer/2022053012/5f0f9d847e708231d4450aef/html5/thumbnails/1.jpg)
| | 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](https://reader033.vdocuments.mx/reader033/viewer/2022053012/5f0f9d847e708231d4450aef/html5/thumbnails/2.jpg)
| | 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](https://reader033.vdocuments.mx/reader033/viewer/2022053012/5f0f9d847e708231d4450aef/html5/thumbnails/3.jpg)
| | 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](https://reader033.vdocuments.mx/reader033/viewer/2022053012/5f0f9d847e708231d4450aef/html5/thumbnails/4.jpg)
| | 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](https://reader033.vdocuments.mx/reader033/viewer/2022053012/5f0f9d847e708231d4450aef/html5/thumbnails/5.jpg)
| | 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](https://reader033.vdocuments.mx/reader033/viewer/2022053012/5f0f9d847e708231d4450aef/html5/thumbnails/6.jpg)
| | 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](https://reader033.vdocuments.mx/reader033/viewer/2022053012/5f0f9d847e708231d4450aef/html5/thumbnails/7.jpg)
| | 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](https://reader033.vdocuments.mx/reader033/viewer/2022053012/5f0f9d847e708231d4450aef/html5/thumbnails/8.jpg)
| | 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](https://reader033.vdocuments.mx/reader033/viewer/2022053012/5f0f9d847e708231d4450aef/html5/thumbnails/9.jpg)
| | 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](https://reader033.vdocuments.mx/reader033/viewer/2022053012/5f0f9d847e708231d4450aef/html5/thumbnails/10.jpg)
| | 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](https://reader033.vdocuments.mx/reader033/viewer/2022053012/5f0f9d847e708231d4450aef/html5/thumbnails/11.jpg)
| | 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](https://reader033.vdocuments.mx/reader033/viewer/2022053012/5f0f9d847e708231d4450aef/html5/thumbnails/12.jpg)
| | 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](https://reader033.vdocuments.mx/reader033/viewer/2022053012/5f0f9d847e708231d4450aef/html5/thumbnails/13.jpg)
| | 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](https://reader033.vdocuments.mx/reader033/viewer/2022053012/5f0f9d847e708231d4450aef/html5/thumbnails/14.jpg)
| | 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](https://reader033.vdocuments.mx/reader033/viewer/2022053012/5f0f9d847e708231d4450aef/html5/thumbnails/15.jpg)
| | 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](https://reader033.vdocuments.mx/reader033/viewer/2022053012/5f0f9d847e708231d4450aef/html5/thumbnails/16.jpg)
| | 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