SlideShare a Scribd company logo
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Advanced Use-Cases On AWS
Container Services
For India cloud summit, Bengaluru
Feb 15th 2019
Mani Chandrasekaran
Solutions Architect
Amazon Internet Services Pvt. Ltd.
http://twitter.com/cmani
http://www.linkedin.com/in/cmanikandan
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
When the impact of change is small,
release velocity can increase
Monolith
Does everything
Microservices
Do one thing
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Mobile
client
Client
IoT
Microservices architectures
API
Gateway
Account DB
Shipping DB
Inventory DB
Store Front
Web App
Account
Lookup
Shipment
Query
Inventory
Query
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Cloud-native architectures are
small pieces, loosely joined
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Containers are the best on ramp
towards modern applications
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Why are enterprises
adopting containers?
• Accelerate software development
• Build modern applications
• Automate operations at web scale
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Make AWS the BEST PLACE to run ANY
containerized applications
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Helping customers scale containers
450+%
growth
Hundreds of millions
of containers started each week
of millions
of container instances
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Why customers love AWS container services
Containers are a first-class citizen of the AWS Cloud
Deeply integrated
with AWS
Security and Compliance
Broad selection of compute instances
and IAM security, VPC networking,
load balancing, and autoscaling
ISO, HIPPA, PCI, SOC1, SOC2, SOC3
Infocomm Media Development Auth.
DevOps Workflow
Best place to build and operate
a complete DevOps workflow for
containers—AWS DevTools and Cloud9
DEV OPS
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Typical use cases
• Microservices: Java, Node.js, Go, Web Apps, etc.
• Continuous Integration and Continuous Deployment (CICD)
• Batch Processing and ETL jobs
• Common PaaS Stack for Application Deployment
• Legacy Application Migration to the Cloud
• Hybrid Workloads
• AI/ML
• Scale Testing
• Backend for IoT use cases
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
AWS container services landscape
Management
Deployment, Scheduling,
Scaling & Management of
containerized applications
Hosting
Where the containers run
Amazon Elastic
Container Service
Amazon Elastic
Container Service
for Kubernetes
Amazon EC2 AWS Fargate
Image Registry
Container Image Repository
Amazon Elastic
Container Registry
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Amazon EC2 Purchasing Options
On-Demand
Pay for compute capacity by the
second with no long-term
commitments
Spiky workloads, to define
needs
Reserved Instances
Make a 1- or 3-year commitment and
receive a significant discount off
On-Demand prices
Committed, steady-state
usage
Spot Instances
Spare EC2 capacity at savings of up
to 90% off On-Demand prices
Fault-tolerant, flexible,
stateless workloads
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Why Spot Instances?
Inexpensive
Significant price savings of
up to 90% over On-Demand
Instances. Perfect for
stateless and fault-tolerant
workloads
Faster Results
Easily run multiple projects
simultaneously and speed up
job flows to generate
business results faster and
innovate faster
Easy Access
Launch spot instances via
the RunInstances function,
run-instances cmd, or from
AWS Console. Integrated
with other AWS and 3rd
party services
Resource Flexibility
Flexibility of ad-hoc
provisioning for multiple
instance types with an
option to hibernate, stop or
terminate instances when
reclaimed.
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Provision Amazon EC2 Spot Instances
• Run Instances API
• Launch configuration / Auto scaling groups
API’s
• EC2 Fleet and/or Spot Fleet API
• RequestSpotInstances API
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Amazon Elastic
Container Service
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Scheduling and Orchestration
Cluster Manager Placement Engine
ECS
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Containers + Spot = match made in heaven
ü Containers are stateless, fault-tolerant and a great fit for Spot Instances
ü Deploy containerized workloads and easily manage clusters at any scale at a fraction of
the cost with Spot Instances
ü Spot instances can be used with ECS or Kubernetes to run any containerized workload
Skyscanner is a travel fare aggregator
website and travel metasearch engine
based in Edinburgh, Scotland
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Enhanced GPU support in Amazon
ECS
Blog - https://aws.amazon.com/blogs/compute/scheduling-gpus-for-deep-
learning-tasks-on-amazon-ecs/
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Handson labs using ECS and Spot Instances
Amazon ECS Catsndogs workshop - https://github.com/aws-
samples/amazon-ecs-catsndogs-workshop
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
AWS Batch
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Introducing AWS Batch
Managed
No software to install or
servers to manage.
AWS Batch provisions,
manages, and scales your
infrastructure
Integrated with AWS
Natively integrated with the AWS
platform, AWS Batch jobs can
easily and securely interact with
services such as Amazon S3,
DynamoDB, and Rekognition
Cost-optimized resource
provisioning
AWS Batch automatically
provisions compute resources
tailored to the needs of your jobs
using Amazon EC2 and Spot
Instances
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Introducing AWS Batch
• Fully-managed batch primitives
• Focus on your applications (shell scripts,
Linux executables, Docker images) and
their resource requirements
• We take care of the rest!
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
AWS Batch Concepts
• Jobs
• Job Definitions
• Job Queue
• Compute Environments
• Scheduler
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Job Definitions
Similar to ECS task definitions, AWS Batch job definitions specify how jobs are
to be run. While each job must reference a job definition, many parameters
can be overridden.
Some of the attributes specified in a job definition:
• IAM role associated with the job
• vCPU and memory requirements
• Mount points
• Container properties
• Environment variables
• Retry strategy
$ aws batch register-job-definition --job-definition-name gatk
--container-properties ...
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Jobs
Jobs are the unit of work executed by AWS Batch as containerized
applications running on Amazon EC2.
Containerized jobs can reference a container image, command, and
parameters. Or, users can fetch a .zip containing their application and
run it on a Amazon Linux container.
$ aws batch submit-job --job-name variant-calling
--job-definition gatk --job-queue genomics
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Easily run massively parallel jobs
Today, users can submit a large number of independent “simple jobs.”
AWS Batch also supports “array jobs” that run many copies of an
application against an array of elements.
Array jobs are an efficient way to run:
• Parametric sweeps
• Monte Carlo simulations
• Processing a large collection of objects
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Demo !!!
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Demo !!!
Run Monte Carlo Simulations on AWS Batch -
https://github.com/aws-samples/ec2-spot-montecarlo-
workshop
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Demo !!!
Using EC2 Spot fleet
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Demo !!!
Using a fully managed AWS batch
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
More use cases for AWS Batch ..
1. Fraud detection -
https://www.slideshare.net/AmazonWebServices/building-fraud-
detection-systems-with-aws-batch-and-containers-dvc301-aws-
reinvent-2018
2. Genome workflows -
https://aws.amazon.com/blogs/compute/building-high-
throughput-genomics-batch-workflows-on-aws-introduction-
part-1-of-4/
3. Data pipelines -
http://tech.adroll.com/blog/data/2018/08/08/running-jobs-
with-aws-batch.html
4. Much more …
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Amazon Elastic
Container Service for Kubernetes
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
But where you run Kubernetes matters
Quality of the
cloud platform
Quality of the
applications
Your users
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
—CNCF survey
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
EKS is Kubernetes certified
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Amazon EKS now available in
Mumbai !!
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
How are customer using Amazon EKS?
Microservices
PaaS
Platform-as-a-Service Enterprise App
Migration
Machine Learning
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Amazon EKS architecture
Workers Workers Workers
Availability zone Availability zone Availability zone
etcd
Master Nodes
Availability zone Availability zone Availability zone
etcd
Master Nodes
etcd
Master Nodes
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Auto scaling with Amazon EKS
• Two dimensions to scaling
• EC2 instance through K8s cluster AutoScaler
• Scale out Amazon EC2 Spot instances
• Pods through HPA
• Scale out pods
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Auto scaling with EKS – Con’t …
Amazon EC2 Autoscaling
• Min
• Max
• Instance type
• ASG group
K8s Cluster Autoscaler
• Min, max, instance
type
• K8s node groups
• CA modes
• Auto-discovery
• Multi ASG
• Single ASG
• Master node
• HPA
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
EKS with Spot – sample architecture
VPC
Availability zone Availability zone Availability zone
Auto
Scaling
Auto
Scaling
Auto
Scaling
m4.large Spot
t2.medium Spot
On-Demand
Instances Instances Instances
Spot
Instance
Spot
Instance
Spot
Instance
Spot
Instance
Spot
Instance
Spot
Instance
Spot Interruption
Cluster Autoscaler
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
EKS with Spot Instance – Handson Labs
https://eksworkshop.com/spot
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Machine Learning Frameworks on EKS
https://github.com/aws-samples/machine-learning-using-k8s
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Kubeflow on Amazon EKS
https://aws.amazon.com/blogs/opensource/kubeflow-amazon-eks/
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
AWS Container Services Region availability
– as of Feb 15th 2019
Amazon ECS AWS Batch AWS Fargate Amazon EKS
Singapore, Tokyo,
Sydney, Seoul,
Mumbai, Beijing,
Ningxia, Ireland,
Frankfurt, London,
Paris, Stockholm,
N.Virginia, Ohio,
Oregon, N.California,
Montreal, Sao Paolo
N.Virginia, Ohio,
Oregon, N.California,
Montreal, Sao Paolo,
Ireland, Frankfurt,
London, Paris,
Singapore, Tokyo,
Sydney, Seoul,
Mumbai
Singapore, Tokyo,
Sydney, Seoul,
Mumbai, Ireland,
Frankfurt, London,
N.Virginia, Ohio,
Oregon, N.California,
Montreal
Singapore, Tokyo,
Sydney, Seoul,
Mumbai, Ireland,
Frankfurt, London,
Paris, Stockholm,
N.Virginia, Ohio,
Oregon
https://aws.amazon.com/about-aws/global-infrastructure/regional-product-
services/
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
THANK YOU
https://aws.amazon.com/containers
Mani Chandrasekaran
Solutions Architect
Amazon Internet Services Pvt. Ltd.
http://twitter.com/cmani
http://www.linkedin.com/in/cmanikandan

More Related Content

PDF
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019
AWS Summits
 
PDF
Blur the boundaries between your on-premises to AWS cloud by embracing VMWare...
AWS Summits
 
PDF
From Code to a running container | AWS Summit Tel Aviv 2019
AWS Summits
 
PDF
Deep Dive on Amazon Elastic Container Service (ECS) | AWS Summit Tel Aviv 2019
AWS Summits
 
PPTX
AWSome Day Brasil - Março 2020
Amazon Web Services LATAM
 
PDF
Orchestrating containers on AWS | AWS Summit Tel Aviv 2019
AWS Summits
 
PDF
Optimize your Machine Learning workloads | AWS Summit Tel Aviv 2019
AWS Summits
 
PDF
AWS Analytics Services - When to use what? | AWS Summit Tel Aviv 2019
AWS Summits
 
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019
AWS Summits
 
Blur the boundaries between your on-premises to AWS cloud by embracing VMWare...
AWS Summits
 
From Code to a running container | AWS Summit Tel Aviv 2019
AWS Summits
 
Deep Dive on Amazon Elastic Container Service (ECS) | AWS Summit Tel Aviv 2019
AWS Summits
 
AWSome Day Brasil - Março 2020
Amazon Web Services LATAM
 
Orchestrating containers on AWS | AWS Summit Tel Aviv 2019
AWS Summits
 
Optimize your Machine Learning workloads | AWS Summit Tel Aviv 2019
AWS Summits
 
AWS Analytics Services - When to use what? | AWS Summit Tel Aviv 2019
AWS Summits
 

Similar to India cloudsummit Bangalore - Advanced Container Use-cases on AWS Container Services (13)

PPTX
DevConZM - Modern Applications Development in the Cloud
Cobus Bernard
 
PPTX
AWSome Day Brasil - Junho 2020
Amazon Web Services LATAM
 
PDF
Securing Container-Based Applications at the Speed of DevOps
WhiteSource
 
PDF
Securing Container-Based Applications at the Speed of DevOps
DevOps.com
 
PPTX
Private Equity Value Creation Carve Outs, Divestitures and mergers
Tom Laszewski
 
PPTX
Secure and Fast microVM for Serverless Computing using Firecracker
Arun Gupta
 
PDF
Containers on AWS
Reham Maher El-Safarini
 
PPTX
Hybrid Cloud on AWS - Introduction and Art of the Possible
Tom Laszewski
 
PDF
Well Archictecture Framework dotNET.pdf
ConradoDeBiasi
 
PPTX
The Serverless Tidal Wave - SwampUP 2018 Keynote
Arun Gupta
 
PDF
AWS Application Service Workshop - Serverless Architecture
John Yeung
 
PDF
[Games on AWS 2019] AWS 입문자를 위한 초단기 레벨업 트랙 | AWS 레벨업 하기! : 컨테이너 - 김세호 AWS 솔루션...
Amazon Web Services Korea
 
PDF
Serverless is not Cloudless - Serverless Security in AWS & AWS funds for Star...
Daniel Zivkovic
 
DevConZM - Modern Applications Development in the Cloud
Cobus Bernard
 
AWSome Day Brasil - Junho 2020
Amazon Web Services LATAM
 
Securing Container-Based Applications at the Speed of DevOps
WhiteSource
 
Securing Container-Based Applications at the Speed of DevOps
DevOps.com
 
Private Equity Value Creation Carve Outs, Divestitures and mergers
Tom Laszewski
 
Secure and Fast microVM for Serverless Computing using Firecracker
Arun Gupta
 
Containers on AWS
Reham Maher El-Safarini
 
Hybrid Cloud on AWS - Introduction and Art of the Possible
Tom Laszewski
 
Well Archictecture Framework dotNET.pdf
ConradoDeBiasi
 
The Serverless Tidal Wave - SwampUP 2018 Keynote
Arun Gupta
 
AWS Application Service Workshop - Serverless Architecture
John Yeung
 
[Games on AWS 2019] AWS 입문자를 위한 초단기 레벨업 트랙 | AWS 레벨업 하기! : 컨테이너 - 김세호 AWS 솔루션...
Amazon Web Services Korea
 
Serverless is not Cloudless - Serverless Security in AWS & AWS funds for Star...
Daniel Zivkovic
 
Ad

Recently uploaded (20)

PPTX
LESSON-2-Roles-of-ICT-in-Teaching-for-learning_123922 (1).pptx
renavieramopiquero
 
PPTX
Blue and Dark Blue Modern Technology Presentation.pptx
ap177979
 
PPTX
AI ad its imp i military life read it ag
ShwetaBharti31
 
PPTX
Black Yellow Modern Minimalist Elegant Presentation.pptx
nothisispatrickduhh
 
PPTX
Slides Powerpoint: Eco Economic Epochs.pptx
Steven McGee
 
PPTX
办理方法西班牙假毕业证蒙德拉贡大学成绩单MULetter文凭样本
xxxihn4u
 
PPTX
The Monk and the Sadhurr and the story of how
BeshoyGirgis2
 
PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
APNIC
 
PPTX
dns domain name system history work.pptx
MUHAMMADKAVISHSHABAN
 
PDF
UI/UX Developer Guide: Tools, Trends, and Tips for 2025
Penguin peak
 
PDF
The Internet of Things (IoT) refers to a vast network of interconnected devic...
chethana8182
 
PPTX
Perkembangan Perangkat jaringan komputer dan telekomunikasi 3.pptx
Prayudha3
 
PPTX
Parallel & Concurrent ...
yashpavasiya892
 
PPTX
Pengenalan perangkat Jaringan komputer pada teknik jaringan komputer dan tele...
Prayudha3
 
PPTX
Unlocking Hope : How Crypto Recovery Services Can Reclaim Your Lost Funds
lionsgate network
 
PPTX
Artificial-Intelligence-in-Daily-Life (2).pptx
nidhigoswami335
 
PDF
Data Protection & Resilience in Focus.pdf
AmyPoblete3
 
PDF
KIPER4D situs Exclusive Game dari server Star Gaming Asia
hokimamad0
 
PPTX
The Latest Scam Shocking the USA in 2025.pptx
onlinescamreport4
 
PPT
Introduction to dns domain name syst.ppt
MUHAMMADKAVISHSHABAN
 
LESSON-2-Roles-of-ICT-in-Teaching-for-learning_123922 (1).pptx
renavieramopiquero
 
Blue and Dark Blue Modern Technology Presentation.pptx
ap177979
 
AI ad its imp i military life read it ag
ShwetaBharti31
 
Black Yellow Modern Minimalist Elegant Presentation.pptx
nothisispatrickduhh
 
Slides Powerpoint: Eco Economic Epochs.pptx
Steven McGee
 
办理方法西班牙假毕业证蒙德拉贡大学成绩单MULetter文凭样本
xxxihn4u
 
The Monk and the Sadhurr and the story of how
BeshoyGirgis2
 
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
APNIC
 
dns domain name system history work.pptx
MUHAMMADKAVISHSHABAN
 
UI/UX Developer Guide: Tools, Trends, and Tips for 2025
Penguin peak
 
The Internet of Things (IoT) refers to a vast network of interconnected devic...
chethana8182
 
Perkembangan Perangkat jaringan komputer dan telekomunikasi 3.pptx
Prayudha3
 
Parallel & Concurrent ...
yashpavasiya892
 
Pengenalan perangkat Jaringan komputer pada teknik jaringan komputer dan tele...
Prayudha3
 
Unlocking Hope : How Crypto Recovery Services Can Reclaim Your Lost Funds
lionsgate network
 
Artificial-Intelligence-in-Daily-Life (2).pptx
nidhigoswami335
 
Data Protection & Resilience in Focus.pdf
AmyPoblete3
 
KIPER4D situs Exclusive Game dari server Star Gaming Asia
hokimamad0
 
The Latest Scam Shocking the USA in 2025.pptx
onlinescamreport4
 
Introduction to dns domain name syst.ppt
MUHAMMADKAVISHSHABAN
 
Ad

India cloudsummit Bangalore - Advanced Container Use-cases on AWS Container Services

  • 1. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Advanced Use-Cases On AWS Container Services For India cloud summit, Bengaluru Feb 15th 2019 Mani Chandrasekaran Solutions Architect Amazon Internet Services Pvt. Ltd. http://twitter.com/cmani http://www.linkedin.com/in/cmanikandan
  • 2. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential When the impact of change is small, release velocity can increase Monolith Does everything Microservices Do one thing
  • 3. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Mobile client Client IoT Microservices architectures API Gateway Account DB Shipping DB Inventory DB Store Front Web App Account Lookup Shipment Query Inventory Query
  • 4. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Cloud-native architectures are small pieces, loosely joined
  • 5. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Containers are the best on ramp towards modern applications
  • 6. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Why are enterprises adopting containers? • Accelerate software development • Build modern applications • Automate operations at web scale © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
  • 7. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Make AWS the BEST PLACE to run ANY containerized applications © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
  • 8. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Helping customers scale containers 450+% growth Hundreds of millions of containers started each week of millions of container instances
  • 9. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Why customers love AWS container services Containers are a first-class citizen of the AWS Cloud Deeply integrated with AWS Security and Compliance Broad selection of compute instances and IAM security, VPC networking, load balancing, and autoscaling ISO, HIPPA, PCI, SOC1, SOC2, SOC3 Infocomm Media Development Auth. DevOps Workflow Best place to build and operate a complete DevOps workflow for containers—AWS DevTools and Cloud9 DEV OPS
  • 10. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Typical use cases • Microservices: Java, Node.js, Go, Web Apps, etc. • Continuous Integration and Continuous Deployment (CICD) • Batch Processing and ETL jobs • Common PaaS Stack for Application Deployment • Legacy Application Migration to the Cloud • Hybrid Workloads • AI/ML • Scale Testing • Backend for IoT use cases
  • 11. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential AWS container services landscape Management Deployment, Scheduling, Scaling & Management of containerized applications Hosting Where the containers run Amazon Elastic Container Service Amazon Elastic Container Service for Kubernetes Amazon EC2 AWS Fargate Image Registry Container Image Repository Amazon Elastic Container Registry
  • 12. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Amazon EC2 Purchasing Options On-Demand Pay for compute capacity by the second with no long-term commitments Spiky workloads, to define needs Reserved Instances Make a 1- or 3-year commitment and receive a significant discount off On-Demand prices Committed, steady-state usage Spot Instances Spare EC2 capacity at savings of up to 90% off On-Demand prices Fault-tolerant, flexible, stateless workloads
  • 13. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Why Spot Instances? Inexpensive Significant price savings of up to 90% over On-Demand Instances. Perfect for stateless and fault-tolerant workloads Faster Results Easily run multiple projects simultaneously and speed up job flows to generate business results faster and innovate faster Easy Access Launch spot instances via the RunInstances function, run-instances cmd, or from AWS Console. Integrated with other AWS and 3rd party services Resource Flexibility Flexibility of ad-hoc provisioning for multiple instance types with an option to hibernate, stop or terminate instances when reclaimed.
  • 14. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Provision Amazon EC2 Spot Instances • Run Instances API • Launch configuration / Auto scaling groups API’s • EC2 Fleet and/or Spot Fleet API • RequestSpotInstances API
  • 15. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Amazon Elastic Container Service
  • 16. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Scheduling and Orchestration Cluster Manager Placement Engine ECS
  • 17. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Containers + Spot = match made in heaven ü Containers are stateless, fault-tolerant and a great fit for Spot Instances ü Deploy containerized workloads and easily manage clusters at any scale at a fraction of the cost with Spot Instances ü Spot instances can be used with ECS or Kubernetes to run any containerized workload Skyscanner is a travel fare aggregator website and travel metasearch engine based in Edinburgh, Scotland
  • 18. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Enhanced GPU support in Amazon ECS Blog - https://aws.amazon.com/blogs/compute/scheduling-gpus-for-deep- learning-tasks-on-amazon-ecs/
  • 19. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Handson labs using ECS and Spot Instances Amazon ECS Catsndogs workshop - https://github.com/aws- samples/amazon-ecs-catsndogs-workshop
  • 20. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential AWS Batch
  • 21. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Introducing AWS Batch Managed No software to install or servers to manage. AWS Batch provisions, manages, and scales your infrastructure Integrated with AWS Natively integrated with the AWS platform, AWS Batch jobs can easily and securely interact with services such as Amazon S3, DynamoDB, and Rekognition Cost-optimized resource provisioning AWS Batch automatically provisions compute resources tailored to the needs of your jobs using Amazon EC2 and Spot Instances
  • 22. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Introducing AWS Batch • Fully-managed batch primitives • Focus on your applications (shell scripts, Linux executables, Docker images) and their resource requirements • We take care of the rest!
  • 23. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential AWS Batch Concepts • Jobs • Job Definitions • Job Queue • Compute Environments • Scheduler
  • 24. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Job Definitions Similar to ECS task definitions, AWS Batch job definitions specify how jobs are to be run. While each job must reference a job definition, many parameters can be overridden. Some of the attributes specified in a job definition: • IAM role associated with the job • vCPU and memory requirements • Mount points • Container properties • Environment variables • Retry strategy $ aws batch register-job-definition --job-definition-name gatk --container-properties ...
  • 25. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Jobs Jobs are the unit of work executed by AWS Batch as containerized applications running on Amazon EC2. Containerized jobs can reference a container image, command, and parameters. Or, users can fetch a .zip containing their application and run it on a Amazon Linux container. $ aws batch submit-job --job-name variant-calling --job-definition gatk --job-queue genomics
  • 26. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Easily run massively parallel jobs Today, users can submit a large number of independent “simple jobs.” AWS Batch also supports “array jobs” that run many copies of an application against an array of elements. Array jobs are an efficient way to run: • Parametric sweeps • Monte Carlo simulations • Processing a large collection of objects
  • 27. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Demo !!!
  • 28. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Demo !!! Run Monte Carlo Simulations on AWS Batch - https://github.com/aws-samples/ec2-spot-montecarlo- workshop
  • 29. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Demo !!! Using EC2 Spot fleet
  • 30. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Demo !!! Using a fully managed AWS batch
  • 31. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential More use cases for AWS Batch .. 1. Fraud detection - https://www.slideshare.net/AmazonWebServices/building-fraud- detection-systems-with-aws-batch-and-containers-dvc301-aws- reinvent-2018 2. Genome workflows - https://aws.amazon.com/blogs/compute/building-high- throughput-genomics-batch-workflows-on-aws-introduction- part-1-of-4/ 3. Data pipelines - http://tech.adroll.com/blog/data/2018/08/08/running-jobs- with-aws-batch.html 4. Much more …
  • 32. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Amazon Elastic Container Service for Kubernetes
  • 33. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential But where you run Kubernetes matters Quality of the cloud platform Quality of the applications Your users
  • 34. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential —CNCF survey
  • 35. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential EKS is Kubernetes certified
  • 36. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Amazon EKS now available in Mumbai !!
  • 37. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential How are customer using Amazon EKS? Microservices PaaS Platform-as-a-Service Enterprise App Migration Machine Learning
  • 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 39. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Amazon EKS architecture Workers Workers Workers Availability zone Availability zone Availability zone etcd Master Nodes Availability zone Availability zone Availability zone etcd Master Nodes etcd Master Nodes
  • 40. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 41. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Auto scaling with Amazon EKS • Two dimensions to scaling • EC2 instance through K8s cluster AutoScaler • Scale out Amazon EC2 Spot instances • Pods through HPA • Scale out pods
  • 42. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Auto scaling with EKS – Con’t … Amazon EC2 Autoscaling • Min • Max • Instance type • ASG group K8s Cluster Autoscaler • Min, max, instance type • K8s node groups • CA modes • Auto-discovery • Multi ASG • Single ASG • Master node • HPA
  • 43. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential EKS with Spot – sample architecture VPC Availability zone Availability zone Availability zone Auto Scaling Auto Scaling Auto Scaling m4.large Spot t2.medium Spot On-Demand Instances Instances Instances Spot Instance Spot Instance Spot Instance Spot Instance Spot Instance Spot Instance Spot Interruption Cluster Autoscaler
  • 44. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential EKS with Spot Instance – Handson Labs https://eksworkshop.com/spot
  • 45. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Machine Learning Frameworks on EKS https://github.com/aws-samples/machine-learning-using-k8s
  • 46. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential Kubeflow on Amazon EKS https://aws.amazon.com/blogs/opensource/kubeflow-amazon-eks/
  • 47. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
  • 48. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential AWS Container Services Region availability – as of Feb 15th 2019 Amazon ECS AWS Batch AWS Fargate Amazon EKS Singapore, Tokyo, Sydney, Seoul, Mumbai, Beijing, Ningxia, Ireland, Frankfurt, London, Paris, Stockholm, N.Virginia, Ohio, Oregon, N.California, Montreal, Sao Paolo N.Virginia, Ohio, Oregon, N.California, Montreal, Sao Paolo, Ireland, Frankfurt, London, Paris, Singapore, Tokyo, Sydney, Seoul, Mumbai Singapore, Tokyo, Sydney, Seoul, Mumbai, Ireland, Frankfurt, London, N.Virginia, Ohio, Oregon, N.California, Montreal Singapore, Tokyo, Sydney, Seoul, Mumbai, Ireland, Frankfurt, London, Paris, Stockholm, N.Virginia, Ohio, Oregon https://aws.amazon.com/about-aws/global-infrastructure/regional-product- services/
  • 49. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential THANK YOU https://aws.amazon.com/containers Mani Chandrasekaran Solutions Architect Amazon Internet Services Pvt. Ltd. http://twitter.com/cmani http://www.linkedin.com/in/cmanikandan