The Basics of Provisioning and Deploy on AWS #jawdays #infra

Download The Basics of Provisioning and Deploy on AWS #jawdays #infra

Post on 14-Nov-2014

4.983 views

Category:

Technology

3 download

DESCRIPTION

2014/3/15JAWS DAYS 2014

TRANSCRIPT

  • 1. on AWS 2014315 1 JAWS DAYS 2014 #jawsdays #infra

2. ! @ryuzee www.ryuzee.com 2 3. Immutable Infrastructure 3 No 4. 4 5. 5 6. http://aws.amazon.com/tools/ 6 7. Infrastructure as Code ! ! ! ! ! ! ! 7 8. ! ! ! 8 9. () AutoScaling ! a 9 10. 11.6s Mean time between deployments (weekday) 1,079 Max number of deployments in a single hour 10,000 Mean number of hosts simultaneously receiving a deployment 30,000 Max number of hosts simultaneously receiving a deployment DEPLOYMENTS AT AMAZON.COM 11. 12. ! ! ! x = ?? 13. ! 14. ! ! 14 15. 16. / ! ! ! ! ! 16 17. (^_^;) ( )!! 17 18. 18 19. http://bit.ly/tnB8i0 ! 19 20. ! ! ! ! ! 20 21. ! ! 21 22. 23. 23 24. (ROI) 24 25. ! ! ! ! () ! ! 25 26. ! ! ! 26 27. PO (63) 4 28. 5R ! Rapid ! Reliable ! Repeatable ! Reduce Risk ! Roll back 28 29. ! ! 29 30. ! ! ! 30 31. ! 31 32. ! ! ! ! ! ! ! ! Just in Time ! ! ! ! ! ! ! ! 33. 34. ! ! 34 35. AWS 35 q q q q AutoScaling qAZ q q q EL B q (RDS) q q q ( ) qAMI qAWS OS qOS qAWS qELBAutoScaling qEBSS3 q( ) 36. ! ! ! ! ! ! () 36 37. http://bit.ly/utD8aA 37 38. ! ! ! ! ! 38 39. A successful Git branching model http://nvie.com/posts/a- successful-git-branching-model/ 39 40. ! 5 15 1 2 1 40 41. ! ! 41 42. 42 43. ! ! ! ! 43 44. ! ! ! 44 45. ! ! ! ! CI ! CI ! CI ! ! / ! ! ! ! CI / CI ! CI ! ! ! CI ! CI ! CI 45 46. ! ! 46 47. ! ! ! ! ! / ! ! 47 48. 48 49. LB LB LB 49 50. ! ! 2 50 51. ! 51 52. ! ! CapistranoFabricMaven ! ! ! ! Elastic Beanstalk & OpsWorks !! 52 53. 1,000 1,000 53 54. Web (Amazon EC2) (Amazon RDS) v1.1 v1.1 v1.1 v1.1 v1.2 v1.2 v1.2 v1.2 (CloudWatch) 54 55. 55 Elastic Beanstalk 55 56. ! ELB + Web(AutoScaling) ! S3 ! ! VPC ! 56 57. ! ! 57 58. Elastic Beanstalk ! CICI ! 58 59. ! ! 59 60. ! ! 60 61. 62. ! ! ! ! ! 62 63. VPC 10.0.0.0/16 Availability Zone - C Availability Zone - A Internet Anyone Internet Gateway Public Subnet 10.0.0.0/24 Public Subnet 10.0.2.0/24 Private Subnet 10.0.1.0/24 Private Subnet 10.0.3.0/24 AMI Amazon RDS Amazon RDS AZ-A-WP1 10.0.0.6 EC2 Instance EC2 Instance AZ-B-WP2 10.0.2.8 63 64. AWS Elastic Beanstalk OpsWorks CloudFormation EC2 64 65. 65 Elastic Beanstalk OpsWorks CloudForm ation Amazon EC2 (Chef Capistrano ) Cookbook ! 66. ! AWS DevOps Chef-Solo(Chef) Elastic Beanstalk AWS OpsWorks 66 67. CloudFormation ! JSON ! ! 67 68. AMI3 AMI OS AMI OS AMI OS 68 69. AMI3 ! ! OS ! OS 69 Packer + Chef-Solo CI 70. Chef 70 71. 71 72. IF YOU CAN PROGRAM IT YOU CAN AUTOMATE IT 73. Chef 73 74. CI ! Amazon EC2 SSD ! Ubuntu 12.04 LTS ! Jenkins ! Vagrant vagrant-lxc ! LXC ! Chef Test-KitchenBerkshelf CookbookGitHub ! Serverspec 74 75. (Sensu) ! a 75 ! ! ! ! !!! 76. (Sensu + Graphite) ! a 76 Sensu Graphite 77. ! ! ! ! 77 78. ! ! 78 79. ! ! 79 80. ! ! ! 80 81. VPC Availability Zone - C Availability Zone - A Internet Anyone Internet Gateway Public Subnet Public Subnet Private Subnet Private Subnet AMI Amazon RDS Amazon RDS 81 CloudFormation Graphite 82. VPC Availability Zone - C Availability Zone - A Internet Anyone Internet Gateway Public Subnet Public Subnet Private Subnet Private Subnet AMI Amazon RDS Amazon RDS 82 GitHub Graphite 83. VPC Availability Zone - C Availability Zone - A Internet Anyone Internet Gateway Public Subnet Public Subnet Private Subnet Private Subnet AMI Amazon RDS Amazon RDS 83 CI Graphite 84. VPC Availability Zone - C Availability Zone - A Internet Anyone Internet Gateway Public Subnet Public Subnet Private Subnet Private Subnet AMI Amazon RDS Amazon RDS 84 API S3 Graphite 85. VPC Availability Zone - C Availability Zone - A Internet Anyone Internet Gateway Public Subnet Public Subnet Private Subnet Private Subnet AMI Amazon RDS Amazon RDS 85 EC2AMIChef Server S3 Sensu Graphite 86. ! ! ! ! API ! ! ! AWS CloudFormation / Elastic Beanstalk / OpsWorks 86

Recommended

View more >