recipe for getting an ec2 instance runningcseweb.ucsd.edu/~q5zhang/ec2.pdfinstance running presented...

24
 Recipe for getting an EC2 Recipe for getting an EC2 instance running instance running Presented by Qing Zhang Presented by Qing Zhang

Upload: others

Post on 24-May-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

Recipe for getting an EC2 Recipe for getting an EC2 instance runninginstance running

Presented by Qing ZhangPresented by Qing Zhang

Page 2: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

What is EC2?  What is EC2?  

Elastic Cloud ComputingElastic Cloud Computing Amazon’s cloud computing serviceAmazon’s cloud computing service Dynamically allocate machineDynamically allocate machine Virtual machinesVirtual machines

– XenXen Talk summary: Get an instance running on Talk summary: Get an instance running on 

EC2 EC2 

Page 3: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

Getting StartedGetting Started

Ingredients Ingredients – EC2 accountEC2 account– S3 account S3 account – Firefox Firefox – ElasticfoxElasticfox

http://developer.amazonwebservices.com/connect/enhttp://developer.amazonwebservices.com/connect/entry.jspa?externalID=609try.jspa?externalID=609

Page 4: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

Step 1 Create an accountStep 1 Create an account

Page 5: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

Generate CertificateGenerate Certificate

Page 6: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

ElasticFoxElasticFox

Launch Elasticfox – “Tools” “Elasticfox”.

Page 7: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

ElasticFox will want your credentialsElasticFox will want your credentials

Page 8: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

Generate Key PairGenerate Key Pair

Click on the “Key Pairs” tab in Elastic Fox. 2. Click on the green Key icon at the top of the tab.

Page 9: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

Set Security GroupsSet Security Groups

Click on the “Security Groups” tab.

Page 10: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

Find InstanceFind Instance

Page 11: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

Launch an instanceLaunch an instance

Right click on the instance you want to connect to, and select the “launch”

Page 12: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

Connecting to an InstanceConnecting to an Instance

Page 13: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

DemoDemo

Page 14: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

Adding stable storageAdding stable storage

Right click on the instance and select attach Right click on the instance and select attach EBS Volume EBS Volume 

It will prompt you for a new volumeIt will prompt you for a new volume Select the size and region Select the size and region 

Page 15: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

Static IPStatic IP

Right click on instance Right click on instance  Select associate Elastic IP with InstanceSelect associate Elastic IP with Instance

Page 16: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

BundlingBundling

Bundling is the process of saving your Bundling is the process of saving your image to stable storageimage to stable storage

Does not work on Linux under ElasticfoxDoes not work on Linux under Elasticfox– done inside of the VM via command line toolsdone inside of the VM via command line toolshttp://developer.amazonwebservices.com/connecthttp://developer.amazonwebservices.com/connect

/entry.jspa?externalID=2213&categoryID=87/entry.jspa?externalID=2213&categoryID=87 Windows right click and “Bundle into and Windows right click and “Bundle into and 

AMI”AMI”

Page 17: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

PricingPricing

Page 18: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

PricingPricing

Page 19: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

PricingPricing

Page 20: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

PricingPricing

Page 21: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

RestrictionsRestrictions

Only 20 VMS Only 20 VMS – request form for more instancesrequest form for more instances

Page 22: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

Network performanceNetwork performance

EC2 to the outside world: EC2 to the outside world: about 3 seconds for the about 3 seconds for the test above test above 30 requests per second 30 requests per second transfer rate: about transfer rate: about 9Kbytes/sec 9Kbytes/sec 

          EC2 to EC2 (separate EC2 to EC2 (separate instance): instance): 0.8 seconds for test 0.8 seconds for test 1135 requests per second 1135 requests per second 329 Kbps 329 Kbps 

dreamhost.com: dreamhost.com: about 1 second for the about 1 second for the thest thest 86 requests per second 86 requests per second transfer rate: about transfer rate: about 34Kbytes/sec 34Kbytes/sec 

dreamhost to dreamhost dreamhost to dreamhost (same account running ab (same account running ab from shell): from shell): about 0.2 seconds for the about 0.2 seconds for the test test 470 requests per sec 470 requests per sec 179 Kbytes/sec transfer 179 Kbytes/sec transfer 

Page 23: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

Networking speedsNetworking speeds

high volume web site hosting is most high volume web site hosting is most definitely one of our target markets, so yes, definitely one of our target markets, so yes, you can assume that we will provide you can assume that we will provide sufficient bandwidth for that class of sufficient bandwidth for that class of application. Having said that, we are very application. Having said that, we are very aware that we're not there yet, and are aware that we're not there yet, and are working on setting this right. working on setting this right. 

Page 24: Recipe for getting an EC2 instance runningcseweb.ucsd.edu/~q5zhang/EC2.pdfinstance running Presented by Qing Zhang ... Amazon’s cloud computing service Dynamically allocate machine

     

QuestionsQuestions