Amazon EC2 Container Service (Amazon ECS) 概要

Embed Size (px)

Text of Amazon EC2 Container Service (Amazon ECS) 概要

  1. 1. 1 Amazon EC2 Container Service 2015/7/27 JAWS Container #1 Ryosuke Iwanaga, Amazon Data Services Japan
  2. 2. 2 Ryosuke Iwanaga ( ) a.k.a @riywo Amazon Data Services Japan Solutions Architect Startup, Gaming Big Data / Deployment / Container Before Amazon Software Engineer / Ops Engineer / DBA / etc.
  3. 3. 3 Solutions Architect, Amazon Data Services Japan AWS AWS() Webinar Amazon Web Services AWS Solutions Architect AWS Black Belt Tech Webinar AWS Webinar
  4. 4. 4 AWS Black Belt Tech Webinar 2015 #awsblackbelt 7AWS DB 7/29AWS CloudHSM & AWS KMS 8/5 Amazon DynamoDB 8/12 8/19Amazon ElastiCache 8/26Amazon Redshift http://aws.amazon.com/jp/event_schedule/
  5. 5. 5 AWSWebinar AWS 18~1915 728RDBAWSOracle 811AWS E 825AWS Web [] http://aws.amazon.com/jp/about-aws/events/
  6. 6. 6 We are hiring!! http://aws.amazon.com/jp/careers/
  7. 7. 7 Amazon ECS Black Belt Tech Webinar http://www.slideshare.net/AmazonWebServicesJapan/aws-blackbelt-2015-ecs
  8. 8. 8
  9. 9. 9 ProcessProcess OS Server Bins/Libs Bins/Libs OS App1 App2 Dockerfile OS: Ubuntu Apache, PHP Dockerfile OS: CentOS Nginx, Ruby Images Build Run Run
  10. 10. 10 OS ProcessProcess Server Bins/Libs Bins/Libs OS App1 App2 Dockerfile OS: Ubuntu Apache, PHP Dockerfile OS: CentOS Nginx, Ruby Images Build Run Run
  11. 11. 11 Base image Patches Ruby Redis Logger Utilities App
  12. 12. 12
  13. 13. 13 AWS Elastic BeanstalkDocker Deploy
  14. 14. 14 35% 85%
  15. 15. 15 ~80%
  16. 16. 16 CPU: 500 Mem: 300 CPU: 10 Mem: 30 CPU: 2000 Mem: 1000 CPU: 10 Mem: 30CPU: 10 Mem: 30 Scheduler Cluster Manager
  17. 17. 17 Amazon EC2 Container Service
  18. 18. 18 Amazon EC2 Container Service AWS Elastic Load Balancing, Amazon EBS, Amazon VPC, AWS IAM, AWS CloudTrail API
  19. 19. 19
  20. 20. 20 Cluster Container Instance Amazon ECS Cluster, Container Instance, Agent Task Definition, Task, Container Run Task, Service Agent Task Container Container Task Service Task Definition Agent Task Task Definition Run Task
  21. 21. 21 Amazon ECS https://www.youtube.com/watch?v=1wLMLwjCqN4
  22. 22. 22 Run Task Amazon ECS: Cluster, Container Instance, Agent Task Definition, Task, Container Run Task, Service Service Task DefinitionTask Definition Cluster Container Instance Task Container Container Task Agent Task Agent
  23. 23. 23 Amazon ECS: Cluster Container Instance ClusterInstance
  24. 24. 24 Amazon ECS: Container Instance Amazon EC2 VPC Docker+ECS Agent Amazon ECS- optimized AMI
  25. 25. 25 Amazon ECS: Agent Amazon ECS endpoint GoDocker image Docker Hub
  26. 26. 26 Run Task Amazon ECS: Cluster, Container Instance, Agent Task Definition, Task, Container Run Task, Service Service Cluster Container Instance Agent Agent Task Container Container Task Task Task DefinitionTask Definition
  27. 27. 27 Amazon ECS: Task Definition CPU, memory, (Port)
  28. 28. 28 : Docker Compose / Docker Swarm Docker Compose Task Definition docker-compose.ymlTask DefinitionJSON https://github.com/ambitioninc/container-transform : DockerCon 2015Amazon ECSDocker Compose, Docker Swarm https://twitter.com/docker/status/613033125900382209
  29. 29. 29 Amazon ECS: Task Task Definition 1Task Definition Task Container Instance
  30. 30. 30 Amazon ECS: Container Task Docker 1Task Container Container Instance
  31. 31. 31 Amazon ECS: Cluster, Container Instance, Agent Task Definition, Task, Container Run Task, Service Cluster Container Instance Agent Agent Task Container Container Task Task Task DefinitionTask Definition ServiceRun Task
  32. 32. 32 Amazon ECS: Run Task Batch Task Definition Task Container Instance
  33. 33. 33 Amazon ECS: Service Web/API Task Task Definition Elastic Load Balancing
  34. 34. 34 Amazon ECS: Service
  35. 35. 35 Amazon ECS: ServiceUpdate ServiceTask DefinitionUpdate Task Task Task TaskBlue-Green Deployment(Atomic)
  36. 36. 36
  37. 37. 37 Amazon ECS Docker Amazon ECS Amazon CTO Werner