LatJUG Amazon Web Services

870 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
870
On SlideShare
0
From Embeds
0
Number of Embeds
58
Actions
Shares
0
Downloads
19
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Different prices on each region (US East cheapest) More zones for CloudFront Load balancer for switches between zones
  • Cloud Watch – poor one Load Balancer Managed start/stop instances Slower than EC2 + HAProxy Only way to scale out 1Gbit/S
  • Push data into the cloud and then pull down Permissions on objects Great for backups
  • Good enough for video streaming
  • Attached to only one instance
  • SimpleDB for * Meta data * Logging * Online gaming Define structure.
  • LatJUG Amazon Web Services

    1. 1. Amazon Web Services: Deploying to the Cloud
    2. 2. Cloud computing <ul><li>On Demand </li></ul><ul><li>Pas-as-you-go </li></ul><ul><li>Virtually infinite </li></ul>
    3. 3. Platform as a Service providers <ul><li>Rackspace.com </li></ul><ul><li>GoGrid.com </li></ul><ul><li>Slicehost.com </li></ul><ul><li>Servepath.com </li></ul><ul><li>aws.amazon.com </li></ul><ul><li>... </li></ul>
    4. 4. Amazon Web Services (AWS) <ul><li>Compute </li></ul><ul><li>Messaging </li></ul><ul><li>Storage </li></ul><ul><li>Content Delivery </li></ul><ul><li>Monitoring </li></ul><ul><li>Networking </li></ul><ul><li>Database </li></ul><ul><li>Support </li></ul><ul><li>Web Traffic </li></ul><ul><li>E-Commerce </li></ul><ul><li>Payments & Billing </li></ul><ul><li>Workforce </li></ul>
    5. 5. Deploy to AWS <ul><li>Choose region and availability zone </li></ul><ul><li>Choose the right technology </li></ul><ul><ul><li>Compute </li></ul></ul><ul><ul><li>Database </li></ul></ul><ul><ul><li>Storage </li></ul></ul><ul><li>Define architecture </li></ul><ul><li>Boot & configure instances </li></ul><ul><li>Deploy application </li></ul><ul><li>... </li></ul><ul><li>Profit </li></ul>
    6. 6. Deploy to AWS <ul><li>Choose region and availability zone </li></ul><ul><li>Choose the right technology </li></ul><ul><ul><li>Compute </li></ul></ul><ul><ul><li>Database </li></ul></ul><ul><ul><li>Storage </li></ul></ul><ul><li>Define architecture </li></ul><ul><li>Boot & configure instances </li></ul><ul><li>Deploy application </li></ul><ul><li>... </li></ul><ul><li>Profit </li></ul>
    7. 7. Regions and Availability Zones <ul><li>Geographically dispersed locations </li></ul><ul><li>Currently four regions </li></ul><ul><li>SLA 99.5% Available </li></ul><ul><li>Part of region </li></ul><ul><li>Designed for high Availability </li></ul><ul><li>No cost for transferring data within a single zone </li></ul>Regions Availability Zones
    8. 8. Deploy to AWS <ul><li>Choose region and availability zone </li></ul><ul><li>Choose the right technology </li></ul><ul><ul><li>Compute </li></ul></ul><ul><ul><li>Database </li></ul></ul><ul><ul><li>Storage </li></ul></ul><ul><li>Define architecture </li></ul><ul><li>Boot & configure instances </li></ul><ul><li>Deploy application </li></ul><ul><li>... </li></ul><ul><li>Profit </li></ul>
    9. 9. Elastic Compute Cloud (EC2) <ul><li>Virtualized computing environment (XEN based) </li></ul><ul><li>Server instances managed through a web service API </li></ul><ul><li>Different instance types </li></ul><ul><ul><li>Balanced </li></ul></ul><ul><ul><li>High CPU </li></ul></ul><ul><ul><li>High memory </li></ul></ul><ul><ul><li>Video processing </li></ul></ul><ul><ul><li>High Performance Computing </li></ul></ul>
    10. 10. Before you launch EC2 <ul><li>Amazon Machine Image (AMI) </li></ul><ul><ul><li>Amazon AMIs </li></ul></ul><ul><ul><li>Community AMIs </li></ul></ul><ul><ul><li>Private AMIs </li></ul></ul><ul><li>Instance Types </li></ul><ul><ul><li>On demand </li></ul></ul><ul><ul><li>Spot instance </li></ul></ul><ul><ul><li>Reserved instance </li></ul></ul><ul><li>SSH key pair </li></ul><ul><li>Security Group </li></ul>
    11. 11. EC2 supplemental services <ul><li>CloudWatch </li></ul><ul><li>Elastic IP </li></ul><ul><li>Elastic Load balancer </li></ul><ul><li>AutoScaling </li></ul>
    12. 12. Deploy to AWS <ul><li>Choose region and availability zone </li></ul><ul><li>Choose the right technology </li></ul><ul><ul><li>Compute </li></ul></ul><ul><ul><li>Storage </li></ul></ul><ul><ul><li>Database </li></ul></ul><ul><li>Define architecture </li></ul><ul><li>Boot & configure instances </li></ul><ul><li>Deploy application </li></ul><ul><li>... </li></ul><ul><li>Profit </li></ul>
    13. 13. Data Storage <ul><li>Persistent cloud storage </li></ul><ul><li>Ephemeral instance storage </li></ul><ul><li>Elastic block storage </li></ul>
    14. 14. Simple Storage Service (S3) <ul><li>Cloud based persistent storage </li></ul><ul><li>Super durable (SLA 99.999999999%) </li></ul><ul><li>Not a file system </li></ul><ul><ul><li>Cannot mount </li></ul></ul><ul><ul><li>Buckets instead of folders </li></ul></ul><ul><ul><li>Object limit - 5Gb </li></ul></ul><ul><ul><li>Shared bucket name space </li></ul></ul><ul><li>Stores objects – not files </li></ul><ul><li>Independent of other AWS services </li></ul>
    15. 15. S3 features <ul><li>AWS Import/Export for large objects </li></ul><ul><li>Reduced redundancy (durability – 99.99%) </li></ul><ul><li>Permissions </li></ul><ul><li>Meta information </li></ul><ul><li>P2P protocol </li></ul><ul><li>Simple command line </li></ul>
    16. 16. S3 + CloudFront <ul><li>Reliable content delivery </li></ul><ul><li>Different delivery methods </li></ul><ul><ul><li>Download </li></ul></ul><ul><ul><li>Stream </li></ul></ul>
    17. 17. Elastic Block Store (EBS) <ul><li>Network based block storage device </li></ul><ul><li>1Gb – 1Tb storage </li></ul><ul><li>Similar to SAN </li></ul><ul><li>Incremental snapshots </li></ul><ul><li>RAID for better performance </li></ul>
    18. 18. Comparison of EC2 data storage options * George Reese. Cloud Application Architectures.
    19. 19. Deploy to AWS <ul><li>Choose region and availability zone </li></ul><ul><li>Choose the right technology </li></ul><ul><ul><li>Compute </li></ul></ul><ul><ul><li>Storage </li></ul></ul><ul><ul><li>Database </li></ul></ul><ul><li>Define architecture </li></ul><ul><li>Boot & configure instances </li></ul><ul><li>Deploy application </li></ul><ul><li>... </li></ul><ul><li>Profit </li></ul>
    20. 20. Database services <ul><li>SimpleDB </li></ul><ul><li>Relational Database Service </li></ul><ul><li>Instance DB </li></ul>
    21. 21. Relational Database Service (RDS) <ul><li>Managed MySQL database </li></ul><ul><li>Replication with 3 clicks </li></ul>
    22. 22. RDS vs Instance DB <ul><li>+ Configuration </li></ul><ul><li>+ No worries about backups </li></ul><ul><li>- Price </li></ul><ul><li>- Maintenance window </li></ul><ul><li>+ Speed </li></ul><ul><li>+ Flexibility </li></ul>RDS Instance DB
    23. 23. Deploy to AWS <ul><li>Choose region and availability zone </li></ul><ul><li>Choose the right technology </li></ul><ul><ul><li>Compute </li></ul></ul><ul><ul><li>Storage </li></ul></ul><ul><ul><li>Database </li></ul></ul><ul><li>Define architecture </li></ul><ul><li>Boot & configure instances </li></ul><ul><li>Deploy application </li></ul><ul><li>... </li></ul><ul><li>Profit </li></ul>
    24. 24. Single AZ Deployment
    25. 25. Multi AZ Deployment
    26. 26. Instance DB
    27. 27. RDS
    28. 28. Deploy to AWS <ul><li>Choose region and availability zone </li></ul><ul><li>Choose the right technology </li></ul><ul><ul><li>Compute </li></ul></ul><ul><ul><li>Storage </li></ul></ul><ul><ul><li>Database </li></ul></ul><ul><li>Define architecture </li></ul><ul><li>Boot & configure instances </li></ul><ul><li>Deploy application </li></ul><ul><li>... </li></ul><ul><li>Profit </li></ul>
    29. 29. Instance Bootstrap <ul><li>One instance for every server type </li></ul><ul><li>All software preinstalled </li></ul><ul><li>Fast boot </li></ul><ul><li>One image to all servers </li></ul><ul><li>Installs & configures during boot process to fit specified role </li></ul><ul><li>Slower boot </li></ul>Images Scripted
    30. 30. Chef <ul><li>Configuration management engine </li></ul><ul><ul><li>Ruby DSL </li></ul></ul><ul><ul><li>Different work modes </li></ul></ul><ul><ul><ul><li>Client-server </li></ul></ul></ul><ul><ul><ul><li>Solo </li></ul></ul></ul>
    31. 31. Chef at cooking <ul><li>Nodes </li></ul><ul><li>Roles </li></ul><ul><li>Cookbooks </li></ul><ul><ul><li>Recipe </li></ul></ul><ul><li>Data bags </li></ul><ul><li>Client </li></ul>
    32. 32. Chef example: redis recipe
    33. 33. Deploy to AWS <ul><li>Choose region and availability zone </li></ul><ul><li>Choose the right technology </li></ul><ul><ul><li>Compute </li></ul></ul><ul><ul><li>Storage </li></ul></ul><ul><ul><li>Database </li></ul></ul><ul><li>Define architecture </li></ul><ul><li>Boot & configure instances </li></ul><ul><li>Deploy application </li></ul><ul><li>... </li></ul><ul><li>Profit </li></ul>
    34. 34. Deployment <ul><li>Chef deployment </li></ul><ul><li>Capistrano </li></ul><ul><li>Whatever you use </li></ul>
    35. 35. Good things about AWS <ul><li>Community support </li></ul><ul><li>Flexible payments </li></ul><ul><li>Great API </li></ul><ul><li>Variety of choices </li></ul><ul><li>Management console </li></ul><ul><li>Continues innovation </li></ul><ul><li>Scalability </li></ul>
    36. 36. Bad things about AWS <ul><li>Email issues </li></ul><ul><li>Premium support only </li></ul><ul><li>I/O performance issues </li></ul>
    37. 37. Questions?

    ×