CPN102 Your First Week with Amazon Elastic Compute Cloud - AWS re: Invent …

1,706 views

Published on

Amazon Elastic Compute Cloud (Amazon EC2) provides resizable compute capacity in the cloud. It gives you complete control over your computing resources how you can run your applications in the AWS Cloud. In this session, we explore the fundamentals of Amazon EC2, providing you with all that you need to begin deploying your applications to the cloud. Come prepared with your Amazon EC2 questions and have them answered in this session!

0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,706
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

CPN102 Your First Week with Amazon Elastic Compute Cloud - AWS re: Invent …

  1. 1. Each day … AWS adds the equivalent server capacity to power Amazon.com when it was $2.76 B enterprise. Werner Vogels, CTO
  2. 2. Each day … one third of web surfers visit a site powered by Amazon Web Services. The Inquirer
  3. 3. Each day …one percent of Internet traffic in North America flows through Amazon Web Services. DeepField Networks
  4. 4. David Brown Sr. Manager, Software Development Amazon EC2Nov 28, 2012 – By David Brown - Presented at AWS re:Invent – Optimized for 16x9 – © Amazon Web Services
  5. 5. [ Cape Town, South Africa ]
  6. 6. [ Seattle, Washington ]
  7. 7. 1) Launching your first instance2) Storage options3) Networking fundamentals4) Monitoring and availability5) Documentation and support [ The Plan ]
  8. 8. [ Your first instance ]
  9. 9. 1) What is an instance?2) Regions and Availability Zones3) Amazon Machine Images (AMIs)4) Security (key pairs and security groups)5) Instance types (t1.micro, m1.small, …)6) Launching the instance [ Your first instance ]
  10. 10. _ Virtual server running within an Amazon EC2 data center_ Accessible remotely (Secure Shell, Remote Desktop Protocol, …)_ Complete control (root or administrator access)_ Runs until stopped or terminated_ Incurs hourly cost while running [ 1. What is an instance? ]
  11. 11. _ Multiple separate regions located around the globe_ Each region is completely isolated from all other regions_ Instances are able to communicate between regions_ Select a region that meets your needs (latency, legal, community …) [ 2. Regions and Availability Zones ]
  12. 12. _ Each region contains multiple Availability Zones_ Each zone is insulated from failures in other zones_ Using multiple zones protects against a failure in a single location_ If you do not specify a zone, Amazon EC2 will choose one for you [ 2. Regions and Availability Zones ]
  13. 13. _ Provides a template for the instance being launched_ Contains the root file system and data needed to boot the instance_ Currently 15,000 images available worldwide_ Support for multiple operating systems_ Images can be private, shared between accounts, or public [ 3. Amazon Machine Images (AMI) ]
  14. 14. [ 3. Amazon Machine Images (AMIs) ]
  15. 15. _ Public images have no password for login_ Key pairs provide a secure login using public/private keys_ Also used for encryption of the Windows administrator password_ Create or import a named key pair_ Public key used within instance for authentication_ Private key always remains a secret [ 4. Security: Key Pairs ]
  16. 16. _ A firewall that controls traffic into a group of instances_ Default security group available in each region_ Add rules to allow inbound traffic (port range, source cidr)_ All other traffic is discarded [ 4. Security: Security Groups ]
  17. 17. _ Determine the underlying hardware of the instance_ Each type offers different compute and memory capabilities_ Choose the type that best meets the needs of your application_ Instances can be changed to support vertical scaling [ 5. Instance Types ]
  18. 18. _ Region has been selected: US West (Oregon)_ Selected an image: Amazon Linux AMI x86_64 EBS_ Key pair has been created: web-server_ Configured the security group: tcp 22, tcp 80 and icmp_ Ready to launch … [ 6. Launching the instance ]
  19. 19. 1) What is an instance?2) Regions and Availability Zones3) Amazon Machine Images (AMIs)4) Security (key pairs and security groups)5) Instance types (t1.micro, m1.small, …)6) Launching the instance [ Your first instance re:cap ]
  20. 20. [ Storage ]
  21. 21. 1) Local instance storage2) Amazon Elastic Block Store (EBS) [ Storage ]
  22. 22. _ Temporary block-level storage_ Physically attached to the host machine_ Data is NOT persisted when the instance is terminated_ Cost NOT included in instance hour charge_ Use for mutating data that needs long-term persistence [ 1. Instance Store ]
  23. 23. _ Persistent block-level storage_ Attached to the instance via the network_ Data IS persisted when the instance is terminated_ Supports up to 1 TiB storage per volume_ Cost NOT included in the instance hourly charge_ Use for mutating data that needs long-term persistence [ 2. Elastic Block Store ]
  24. 24. [ec2-user@ip-10-244-6-217 ~]$ sudo mkfs -t ext3 /dev/sdfmke2fs 1.42 (29-Nov-2011)…Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872Allocating group tables: doneWriting inode tables: doneCreating journal (32768 blocks): doneWriting superblocks and filesystem accounting information: done[ec2-user@ip-10-244-6-217 ~]$ sudo mkdir /mnt/data-store[ec2-user@ip-10-244-6-217 ~]$ sudo mount /dev/sdf /mnt/data-store[ec2-user@ip-10-244-6-217 ~]$ df -hFilesystem Size Used Avail Use% Mounted on/dev/xvda1 7.9G 923M 6.9G 12% /tmpfs 298M 0 298M 0% /dev/shm/dev/xvdf 99G 188M 94G 1% /mnt/data-store
  25. 25. I n st a n c e A I n st a n c e BI n st a n c e St o r e Vo l u m es Sn a psho t s Ho st Ma c hi n e Am a z o n EBS Am a z o n S3[ Storage re:cap ]
  26. 26. [ Networking ]
  27. 27. 1) Basic networking2) Elastic IPs3) Advanced networking with Amazon Virtual Private Cloud (VPC) [ Networking ]
  28. 28. _ Each region provides a flat network topology_ Instances can communicate within and between Availability Zones_ Traffic between regions is transferred over the Internet_ Traffic is charged per GB (free, regional, and Internet) [ 1. Networking basics ]
  29. 29. _ Each instance is assigned both a private and public IP address_ Public IP addresses are reachable over the Internet_ Private IP addresses are reachable ONLY with the EC2 network_ Private and Public IP address are lost when the instance is terminated_ DNS names are provided for both private and public IP addresses [ 1. Networking basics ]
  30. 30. _ Static IP addresses designed for dynamic cloud computing_ Associated with your account, not a specific instance_ Can be mapped to instances as needed_ Removes the need for dynamic DNS_ Incur an hourly cost when not mapped to an instance [ 2. Elastic IP addresses ]
  31. 31. 54.245.244.224[ 2. Elastic IP addresses ]
  32. 32. _ Amazon VPC allows you to define your own network with EC2_ IP addresses are assigned from a specified CIDR range_ Closely resembles a traditional network (subnets, routers, …)_ Combined multiple VPCs to form a larger virtual network_ VPCs can be connected back to you own data center via VPN [ 3. Advanced networking ]
  33. 33. Virtual Networking in the Cloud Thursday, 16:05 – Venetian B Eric Schultz
  34. 34. 1) Basic networking2) Elastic IPs3) Advanced networking with Amazon VPC [ Networking re:cap ]
  35. 35. [ Monitoring ]
  36. 36. 1) Instance status metrics2) Instance performance metrics3) Instance alarms [ Monitoring ]
  37. 37. _ EC2 performs automated health checks on all running instances_ Check for both system and instance impairments_ System impairments need to be resolved by Amazon EC2_ Instance impairments indicate a problem within the instance_ Use instance status to monitor the health of your EC2 fleet [ 3. Instance Status ]
  38. 38. _ Powered by Amazon CloudWatch_ Collects raw instance data to expose performance metrics_ CPU utilization, disk reads, disk writes, network bytes, …_ Free at 5 minute granularity; 1 minute available at additional cost_ Accessible via the AWS Management Console [ 3. Instance Metrics ]
  39. 39. _ Monitors a metric and triggers when alarm threshold is breached_ Sends a Simple Notification Service (SNS) message (email, sms, …)_ Alarms can be configured on any of the EC2 instance metrics [ 3. Instance Alarms ]
  40. 40. [ 3. Instance Alarms ]
  41. 41. Architecting for High Availability on AWS Thursday, 11:35 – Venetian A Attila Narin
  42. 42. 1) Instance status metrics2) Instance performance metrics3) Instance alarms [ Monitoring re:cap ]
  43. 43. [ Documentation and Support ]
  44. 44. 1) Client interfaces2) Documentation resources3) Developer Support [ Documentation and Support ]
  45. 45. _ EC2 API Tools provide support for command-line scripting_ AWS SDKs provide library support for several languages_ EC2 APIs provide raw access to EC2 resources_ Use one of more of the above to build your application [ 1. Client Interfaces ]
  46. 46. _ http://aws.amazon.com/ec2_ EC2 Getting Started Guide provides a good walk through_ EC2 User Guide provides detailed information on all concepts [ 2. Documentation ]
  47. 47. _ Provide support to customers using Amazon EC2_ Staffed by a global team of support professionals_ Provide free support for instances with a system impairment_ Paid support options include assistance with best practices [ 3. Developer Support ]
  48. 48. Work hard. Have fun. Make history.
  49. 49. We’re eager to hear your feedback on this presentation and on re:Invent! Please fill out an evaluation form when you have a chanceNov 28, 2012 – By David Brown - Presented at AWS re:Invent – Optimized for 16x9 – © Amazon Web Services

×