SlideShare une entreprise Scribd logo
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Predictive Scaling for More
Responsive Applications
Prasad Sristi
Principal Product Manager
Amazon Web Services
A P I 3 3 0
Kal Patel
Principal Architect
Genesys PureCloud
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling overview
Auto Scaling simplifies capacity
provisioning through automation
Spot Fleet Request
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling overview
Amazon EC2
Auto Scaling
AWS
Auto Scaling
Application
Auto Scaling
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scaling EC2 resources
Manual scaling Dynamic scalingScheduled scaling
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Introducing predictive scaling
Manual scaling Dynamic scalingScheduled scaling Predictive scaling
New!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Prediction = better planning
Weather Traffic Time Electricity Water
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Why predictive scaling?
40% traffic
is cyclical
Temporary
external outages
Applications with
long warm-up times
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Predictive Scaling with Amazon EC2 Auto Scaling
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Benefits of predictive scaling: Use case #1
0
2000000
4000000
6000000
8000000
10000000
12000000
14000000
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Traffic forecast with predictive scaling
0
2000000
4000000
6000000
8000000
10000000
12000000
14000000
16000000
Series1 Series2
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Capacity forecast
0
50
100
150
200
0
2000000
4000000
6000000
8000000
10000000
12000000
14000000
16000000
Series1 Series2 Series3
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Responsiveness during a spike
-10
40
90
140
190
240
0
2000000
4000000
6000000
8000000
10000000
12000000
14000000
1 2 3 4 5 6 7
Series1 Series2 Series3
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Benefits of predictive scaling: Use case #2
0
100000
200000
300000
400000
500000
600000
700000
800000
Series1 Series2
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Capacity forecast with predictive scaling
0
5
10
15
20
25
30
35
40
0
100000
200000
300000
400000
500000
600000
700000
800000
Series1 Series2 Series3
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Response during an untimely dip
0
5
10
15
20
25
0
50000
100000
150000
200000
250000
300000
350000
Series1 Series2 Series3
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Benefits of predictive scaling: Use case #3
0
10000
20000
30000
40000
50000
60000
Series1 Series2
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Configuring predictive scaling
Load metric: Scaling metric:
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Configuring predictive scaling…cont’d
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Predictive scaling in Amazon EC2 Auto Scaling
Machine learning technology behind the scenes
Machine
learning model
Billions of data points
from Amazon.com
Load metric
and forecasts
next two days based on
the pre-trained model
Performs
regression analysis
between load metric
and scaling metric
Schedules
scaling actions
for the next
two days, hourly
Repeats
every day
Capacity provisioning on-premises Capacity provisioning with dynamic scaling Capacity provisioning with predictive scaling and
dynamic scaling
Time
Load/Capacity
Time
Load/Capacity
Time
Load/Capacity
Provisioned capacity Actual capacity demand
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Predictive scaling with target tracking
• With target tracking
• Without target tracking
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Genesys
Gartner names Genesys a leader
in the 2018 Magic Quadrant for
Contact Center Infrastructure …
(23 times and counting)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Genesys platforms
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
PureCloud deployment
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Infrastructure scale
get-discovered-resource-counts
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Deployments per week
1527
505
348
1 2 3
Numberofdeployments
Deployment types
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Problem we are trying to solve
Highly available platform
while optimizing for cost
Due to security and compliance reasons,
we do not fail over across regions
Each region has unique usage pattern.
As a result each region needs to be
tuned constantly for capacity
Our frequency of adjusting scaling settings has
reduced our capability to focus on our core
competencies.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Asia Pacific (Tokyo)US East (N. Virginia) EU (Ireland)
Daily throughput across regions
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
We had an accident earlier this
year!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Sharp spike in traffic
Deploy
Roll Back
Error
Spike
Fix deployed
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
ASG total instance count
RollBack
Scale-up – sharp spike in traffic.
Resulted into a spike in error rate
Fixed ASG min values
New code
deploy
Scaled down
Low traffic
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Daily scale up with predictive scaling
Schedule scale-up Enable predictive scaling
Predictive
Dynamic
Guard rail
Dynamic
Controlled
scale-upSharp scale-
up
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Predictive scaling might have helped here
Guard rail??
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Due to our use of Red-Black deployment strategy,
almost all of our ASG’s did not have enough historical
data
Lessons learned
ALB metrics are supported but ELB are not!
We can rely on predictive & dynamic scaling to
auto-adjust our capacity
We still need to track and monitor our data &
cache tier
We are not quite ready for 100% auto-pilot
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What’s next?
• Roll out predictive scaling to more
services
• “Forecast only” option is very
powerful on its own
• Review and verify proposed changes
• Identify cost optimizations (e.g.,
Reserved Instance)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Availability
US East (Virginia)
US East (Ohio)
US West (Oregon)
EU (Ireland)
Asia Pacific (Singapore)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Get started
https://aws.amazon.com/autoscaling/
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Kal Patel
kal.patel@genesys.com
Prasad Sristi
sristips@amazon.com
www.linkedin.com/in/prasadsristi
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Contenu connexe

Tendances

Power Automate Desktop.pptx
Power Automate Desktop.pptxPower Automate Desktop.pptx
Power Automate Desktop.pptx
PramodKonidela
 
Ppt of soap ui
Ppt of soap uiPpt of soap ui
Ppt of soap ui
pkslide28
 
Robot Framework Introduction
Robot Framework IntroductionRobot Framework Introduction
Robot Framework Introduction
Pekka Klärck
 
Test case for chatbots
Test case for chatbotsTest case for chatbots
Test case for chatbots
Sankar G
 
Chaos Engineering
Chaos EngineeringChaos Engineering
Chaos Engineering
Amazon Web Services
 
apidays LIVE Singapore - Next-generation microservice architecture based on A...
apidays LIVE Singapore - Next-generation microservice architecture based on A...apidays LIVE Singapore - Next-generation microservice architecture based on A...
apidays LIVE Singapore - Next-generation microservice architecture based on A...
apidays
 
Building APIs with the OpenApi Spec
Building APIs with the OpenApi SpecBuilding APIs with the OpenApi Spec
Building APIs with the OpenApi Spec
Pedro J. Molina
 
Apache Kafka - Martin Podval
Apache Kafka - Martin PodvalApache Kafka - Martin Podval
Apache Kafka - Martin Podval
Martin Podval
 
Power Automate Desktop.pptx
Power Automate Desktop.pptxPower Automate Desktop.pptx
Power Automate Desktop.pptx
PramodKonidela
 
BYOP: Custom Processor Development with Apache NiFi
BYOP: Custom Processor Development with Apache NiFiBYOP: Custom Processor Development with Apache NiFi
BYOP: Custom Processor Development with Apache NiFi
DataWorks Summit
 
RPA at Full Scale. Advancing From Initial Success to Sustainable Automation
RPA at Full Scale. Advancing From Initial Success to Sustainable AutomationRPA at Full Scale. Advancing From Initial Success to Sustainable Automation
RPA at Full Scale. Advancing From Initial Success to Sustainable Automation
UiPath
 
Introduction to UiPath licensing model
Introduction to UiPath licensing modelIntroduction to UiPath licensing model
Introduction to UiPath licensing model
Vibhor Shrivastava
 
Kafka presentation
Kafka presentationKafka presentation
Kafka presentation
Mohammed Fazuluddin
 
Welcome to the Automation First Era: Your Guide to a Thriving Enterprise
Welcome to the Automation First Era: Your Guide to a Thriving EnterpriseWelcome to the Automation First Era: Your Guide to a Thriving Enterprise
Welcome to the Automation First Era: Your Guide to a Thriving Enterprise
UiPath
 
Introduction To UiPath | RPA Tutorial For Beginners | RPA Training using Uipa...
Introduction To UiPath | RPA Tutorial For Beginners | RPA Training using Uipa...Introduction To UiPath | RPA Tutorial For Beginners | RPA Training using Uipa...
Introduction To UiPath | RPA Tutorial For Beginners | RPA Training using Uipa...
Edureka!
 
Apache Beam: A unified model for batch and stream processing data
Apache Beam: A unified model for batch and stream processing dataApache Beam: A unified model for batch and stream processing data
Apache Beam: A unified model for batch and stream processing data
DataWorks Summit/Hadoop Summit
 
Exception Handling in UiPath.pptx
Exception Handling in UiPath.pptxException Handling in UiPath.pptx
Exception Handling in UiPath.pptx
ApurbaSamanta9
 
The Observability Pipeline
The Observability PipelineThe Observability Pipeline
The Observability Pipeline
Tyler Treat
 
Auxis Webinar: Diving into RPA
Auxis Webinar: Diving into RPAAuxis Webinar: Diving into RPA
Auxis Webinar: Diving into RPA
Auxis Consulting & Outsourcing
 
[Infographic] Challenges in Test Automation
[Infographic] Challenges in Test Automation [Infographic] Challenges in Test Automation
[Infographic] Challenges in Test Automation
Katalon Studio
 

Tendances (20)

Power Automate Desktop.pptx
Power Automate Desktop.pptxPower Automate Desktop.pptx
Power Automate Desktop.pptx
 
Ppt of soap ui
Ppt of soap uiPpt of soap ui
Ppt of soap ui
 
Robot Framework Introduction
Robot Framework IntroductionRobot Framework Introduction
Robot Framework Introduction
 
Test case for chatbots
Test case for chatbotsTest case for chatbots
Test case for chatbots
 
Chaos Engineering
Chaos EngineeringChaos Engineering
Chaos Engineering
 
apidays LIVE Singapore - Next-generation microservice architecture based on A...
apidays LIVE Singapore - Next-generation microservice architecture based on A...apidays LIVE Singapore - Next-generation microservice architecture based on A...
apidays LIVE Singapore - Next-generation microservice architecture based on A...
 
Building APIs with the OpenApi Spec
Building APIs with the OpenApi SpecBuilding APIs with the OpenApi Spec
Building APIs with the OpenApi Spec
 
Apache Kafka - Martin Podval
Apache Kafka - Martin PodvalApache Kafka - Martin Podval
Apache Kafka - Martin Podval
 
Power Automate Desktop.pptx
Power Automate Desktop.pptxPower Automate Desktop.pptx
Power Automate Desktop.pptx
 
BYOP: Custom Processor Development with Apache NiFi
BYOP: Custom Processor Development with Apache NiFiBYOP: Custom Processor Development with Apache NiFi
BYOP: Custom Processor Development with Apache NiFi
 
RPA at Full Scale. Advancing From Initial Success to Sustainable Automation
RPA at Full Scale. Advancing From Initial Success to Sustainable AutomationRPA at Full Scale. Advancing From Initial Success to Sustainable Automation
RPA at Full Scale. Advancing From Initial Success to Sustainable Automation
 
Introduction to UiPath licensing model
Introduction to UiPath licensing modelIntroduction to UiPath licensing model
Introduction to UiPath licensing model
 
Kafka presentation
Kafka presentationKafka presentation
Kafka presentation
 
Welcome to the Automation First Era: Your Guide to a Thriving Enterprise
Welcome to the Automation First Era: Your Guide to a Thriving EnterpriseWelcome to the Automation First Era: Your Guide to a Thriving Enterprise
Welcome to the Automation First Era: Your Guide to a Thriving Enterprise
 
Introduction To UiPath | RPA Tutorial For Beginners | RPA Training using Uipa...
Introduction To UiPath | RPA Tutorial For Beginners | RPA Training using Uipa...Introduction To UiPath | RPA Tutorial For Beginners | RPA Training using Uipa...
Introduction To UiPath | RPA Tutorial For Beginners | RPA Training using Uipa...
 
Apache Beam: A unified model for batch and stream processing data
Apache Beam: A unified model for batch and stream processing dataApache Beam: A unified model for batch and stream processing data
Apache Beam: A unified model for batch and stream processing data
 
Exception Handling in UiPath.pptx
Exception Handling in UiPath.pptxException Handling in UiPath.pptx
Exception Handling in UiPath.pptx
 
The Observability Pipeline
The Observability PipelineThe Observability Pipeline
The Observability Pipeline
 
Auxis Webinar: Diving into RPA
Auxis Webinar: Diving into RPAAuxis Webinar: Diving into RPA
Auxis Webinar: Diving into RPA
 
[Infographic] Challenges in Test Automation
[Infographic] Challenges in Test Automation [Infographic] Challenges in Test Automation
[Infographic] Challenges in Test Automation
 

Similaire à Predictive Scaling for More Responsive Applications (API330) - AWS re:Invent 2018

How to Use Predictive Scaling (API331-R1) - AWS re:Invent 2018
How to Use Predictive Scaling (API331-R1) - AWS re:Invent 2018How to Use Predictive Scaling (API331-R1) - AWS re:Invent 2018
How to Use Predictive Scaling (API331-R1) - AWS re:Invent 2018
Amazon Web Services
 
產業轉型:如何利用AWS構建SaaS服務平台,新思維拓展新商機 (Level: 200)
產業轉型:如何利用AWS構建SaaS服務平台,新思維拓展新商機 (Level: 200)產業轉型:如何利用AWS構建SaaS服務平台,新思維拓展新商機 (Level: 200)
產業轉型:如何利用AWS構建SaaS服務平台,新思維拓展新商機 (Level: 200)
Amazon Web Services
 
The Future of Enterprise IT - Lessons Learned
The Future of Enterprise IT - Lessons LearnedThe Future of Enterprise IT - Lessons Learned
The Future of Enterprise IT - Lessons Learned
Amazon Web Services
 
Optimize EC2 for Fun and Profit - SRV203 - Anaheim AWS Summit
Optimize EC2 for Fun and Profit - SRV203 - Anaheim AWS SummitOptimize EC2 for Fun and Profit - SRV203 - Anaheim AWS Summit
Optimize EC2 for Fun and Profit - SRV203 - Anaheim AWS Summit
Amazon Web Services
 
Overview Best Practices for Large Scale Migrations - Transformation Day Phila...
Overview Best Practices for Large Scale Migrations - Transformation Day Phila...Overview Best Practices for Large Scale Migrations - Transformation Day Phila...
Overview Best Practices for Large Scale Migrations - Transformation Day Phila...
Amazon Web Services
 
Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018
Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018
Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018
Amazon Web Services
 
Leadership Session: The Future of Enterprise IT (ENT220-L) - AWS re:Invent 2018
Leadership Session:  The Future of Enterprise IT (ENT220-L) - AWS re:Invent 2018Leadership Session:  The Future of Enterprise IT (ENT220-L) - AWS re:Invent 2018
Leadership Session: The Future of Enterprise IT (ENT220-L) - AWS re:Invent 2018
Amazon Web Services
 
An Overview of Best Practices for Large Scale Migrations - AWS Transformation...
An Overview of Best Practices for Large Scale Migrations - AWS Transformation...An Overview of Best Practices for Large Scale Migrations - AWS Transformation...
An Overview of Best Practices for Large Scale Migrations - AWS Transformation...
Amazon Web Services
 
The Cloud Business Case - overcoming hurdles & achieving business benefits in...
The Cloud Business Case - overcoming hurdles & achieving business benefits in...The Cloud Business Case - overcoming hurdles & achieving business benefits in...
The Cloud Business Case - overcoming hurdles & achieving business benefits in...
Amazon Web Services
 
The Quest for Continuous ATO: A Case Study Featuring the US Intelligence Comm...
The Quest for Continuous ATO: A Case Study Featuring the US Intelligence Comm...The Quest for Continuous ATO: A Case Study Featuring the US Intelligence Comm...
The Quest for Continuous ATO: A Case Study Featuring the US Intelligence Comm...
Amazon Web Services
 
An Overview of Best Practices for Large-Scale Migrations - AWS Transformation...
An Overview of Best Practices for Large-Scale Migrations - AWS Transformation...An Overview of Best Practices for Large-Scale Migrations - AWS Transformation...
An Overview of Best Practices for Large-Scale Migrations - AWS Transformation...
Amazon Web Services
 
Shift-Left SRE: Self-Healing with AWS Lambda Functions (DEV313-S) - AWS re:In...
Shift-Left SRE: Self-Healing with AWS Lambda Functions (DEV313-S) - AWS re:In...Shift-Left SRE: Self-Healing with AWS Lambda Functions (DEV313-S) - AWS re:In...
Shift-Left SRE: Self-Healing with AWS Lambda Functions (DEV313-S) - AWS re:In...
Amazon Web Services
 
[NEW LAUNCH!] Introducing Amazon Forecast (AIM344) - AWS re:Invent 2018
[NEW LAUNCH!] Introducing Amazon Forecast  (AIM344) - AWS re:Invent 2018[NEW LAUNCH!] Introducing Amazon Forecast  (AIM344) - AWS re:Invent 2018
[NEW LAUNCH!] Introducing Amazon Forecast (AIM344) - AWS re:Invent 2018
Amazon Web Services
 
[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...
[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...
[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...
Amazon Web Services
 
Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...
Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...
Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...
Amazon Web Services
 
Building a Monitoring Plan.pdf
Building a Monitoring Plan.pdfBuilding a Monitoring Plan.pdf
Building a Monitoring Plan.pdf
Amazon Web Services
 
Proven Methodologies for Accelerating Your Cloud Journey (ENT308-S) - AWS re:...
Proven Methodologies for Accelerating Your Cloud Journey (ENT308-S) - AWS re:...Proven Methodologies for Accelerating Your Cloud Journey (ENT308-S) - AWS re:...
Proven Methodologies for Accelerating Your Cloud Journey (ENT308-S) - AWS re:...
Amazon Web Services
 
Cost Optimisation Using Modern Cloud Architectures - AWS Summit Sydney 2018
Cost Optimisation Using Modern Cloud Architectures - AWS Summit Sydney 2018Cost Optimisation Using Modern Cloud Architectures - AWS Summit Sydney 2018
Cost Optimisation Using Modern Cloud Architectures - AWS Summit Sydney 2018
Amazon Web Services
 
An Overview of Best Practices for Large Scale Migrations - AWS Transformation...
An Overview of Best Practices for Large Scale Migrations - AWS Transformation...An Overview of Best Practices for Large Scale Migrations - AWS Transformation...
An Overview of Best Practices for Large Scale Migrations - AWS Transformation...
Amazon Web Services
 
[NEW LAUNCH!] Introduction to AWS Global Accelerator (NET330) - AWS re:Invent...
[NEW LAUNCH!] Introduction to AWS Global Accelerator (NET330) - AWS re:Invent...[NEW LAUNCH!] Introduction to AWS Global Accelerator (NET330) - AWS re:Invent...
[NEW LAUNCH!] Introduction to AWS Global Accelerator (NET330) - AWS re:Invent...
Amazon Web Services
 

Similaire à Predictive Scaling for More Responsive Applications (API330) - AWS re:Invent 2018 (20)

How to Use Predictive Scaling (API331-R1) - AWS re:Invent 2018
How to Use Predictive Scaling (API331-R1) - AWS re:Invent 2018How to Use Predictive Scaling (API331-R1) - AWS re:Invent 2018
How to Use Predictive Scaling (API331-R1) - AWS re:Invent 2018
 
產業轉型:如何利用AWS構建SaaS服務平台,新思維拓展新商機 (Level: 200)
產業轉型:如何利用AWS構建SaaS服務平台,新思維拓展新商機 (Level: 200)產業轉型:如何利用AWS構建SaaS服務平台,新思維拓展新商機 (Level: 200)
產業轉型:如何利用AWS構建SaaS服務平台,新思維拓展新商機 (Level: 200)
 
The Future of Enterprise IT - Lessons Learned
The Future of Enterprise IT - Lessons LearnedThe Future of Enterprise IT - Lessons Learned
The Future of Enterprise IT - Lessons Learned
 
Optimize EC2 for Fun and Profit - SRV203 - Anaheim AWS Summit
Optimize EC2 for Fun and Profit - SRV203 - Anaheim AWS SummitOptimize EC2 for Fun and Profit - SRV203 - Anaheim AWS Summit
Optimize EC2 for Fun and Profit - SRV203 - Anaheim AWS Summit
 
Overview Best Practices for Large Scale Migrations - Transformation Day Phila...
Overview Best Practices for Large Scale Migrations - Transformation Day Phila...Overview Best Practices for Large Scale Migrations - Transformation Day Phila...
Overview Best Practices for Large Scale Migrations - Transformation Day Phila...
 
Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018
Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018
Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018
 
Leadership Session: The Future of Enterprise IT (ENT220-L) - AWS re:Invent 2018
Leadership Session:  The Future of Enterprise IT (ENT220-L) - AWS re:Invent 2018Leadership Session:  The Future of Enterprise IT (ENT220-L) - AWS re:Invent 2018
Leadership Session: The Future of Enterprise IT (ENT220-L) - AWS re:Invent 2018
 
An Overview of Best Practices for Large Scale Migrations - AWS Transformation...
An Overview of Best Practices for Large Scale Migrations - AWS Transformation...An Overview of Best Practices for Large Scale Migrations - AWS Transformation...
An Overview of Best Practices for Large Scale Migrations - AWS Transformation...
 
The Cloud Business Case - overcoming hurdles & achieving business benefits in...
The Cloud Business Case - overcoming hurdles & achieving business benefits in...The Cloud Business Case - overcoming hurdles & achieving business benefits in...
The Cloud Business Case - overcoming hurdles & achieving business benefits in...
 
The Quest for Continuous ATO: A Case Study Featuring the US Intelligence Comm...
The Quest for Continuous ATO: A Case Study Featuring the US Intelligence Comm...The Quest for Continuous ATO: A Case Study Featuring the US Intelligence Comm...
The Quest for Continuous ATO: A Case Study Featuring the US Intelligence Comm...
 
An Overview of Best Practices for Large-Scale Migrations - AWS Transformation...
An Overview of Best Practices for Large-Scale Migrations - AWS Transformation...An Overview of Best Practices for Large-Scale Migrations - AWS Transformation...
An Overview of Best Practices for Large-Scale Migrations - AWS Transformation...
 
Shift-Left SRE: Self-Healing with AWS Lambda Functions (DEV313-S) - AWS re:In...
Shift-Left SRE: Self-Healing with AWS Lambda Functions (DEV313-S) - AWS re:In...Shift-Left SRE: Self-Healing with AWS Lambda Functions (DEV313-S) - AWS re:In...
Shift-Left SRE: Self-Healing with AWS Lambda Functions (DEV313-S) - AWS re:In...
 
[NEW LAUNCH!] Introducing Amazon Forecast (AIM344) - AWS re:Invent 2018
[NEW LAUNCH!] Introducing Amazon Forecast  (AIM344) - AWS re:Invent 2018[NEW LAUNCH!] Introducing Amazon Forecast  (AIM344) - AWS re:Invent 2018
[NEW LAUNCH!] Introducing Amazon Forecast (AIM344) - AWS re:Invent 2018
 
[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...
[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...
[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...
 
Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...
Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...
Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...
 
Building a Monitoring Plan.pdf
Building a Monitoring Plan.pdfBuilding a Monitoring Plan.pdf
Building a Monitoring Plan.pdf
 
Proven Methodologies for Accelerating Your Cloud Journey (ENT308-S) - AWS re:...
Proven Methodologies for Accelerating Your Cloud Journey (ENT308-S) - AWS re:...Proven Methodologies for Accelerating Your Cloud Journey (ENT308-S) - AWS re:...
Proven Methodologies for Accelerating Your Cloud Journey (ENT308-S) - AWS re:...
 
Cost Optimisation Using Modern Cloud Architectures - AWS Summit Sydney 2018
Cost Optimisation Using Modern Cloud Architectures - AWS Summit Sydney 2018Cost Optimisation Using Modern Cloud Architectures - AWS Summit Sydney 2018
Cost Optimisation Using Modern Cloud Architectures - AWS Summit Sydney 2018
 
An Overview of Best Practices for Large Scale Migrations - AWS Transformation...
An Overview of Best Practices for Large Scale Migrations - AWS Transformation...An Overview of Best Practices for Large Scale Migrations - AWS Transformation...
An Overview of Best Practices for Large Scale Migrations - AWS Transformation...
 
[NEW LAUNCH!] Introduction to AWS Global Accelerator (NET330) - AWS re:Invent...
[NEW LAUNCH!] Introduction to AWS Global Accelerator (NET330) - AWS re:Invent...[NEW LAUNCH!] Introduction to AWS Global Accelerator (NET330) - AWS re:Invent...
[NEW LAUNCH!] Introduction to AWS Global Accelerator (NET330) - AWS re:Invent...
 

Plus de Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
Amazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
Amazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
Amazon Web Services
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Amazon Web Services
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
Amazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
Amazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Amazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
Amazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Amazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
Amazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon Web Services
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
Amazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
Amazon Web Services
 

Plus de Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Predictive Scaling for More Responsive Applications (API330) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Predictive Scaling for More Responsive Applications Prasad Sristi Principal Product Manager Amazon Web Services A P I 3 3 0 Kal Patel Principal Architect Genesys PureCloud
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling overview Auto Scaling simplifies capacity provisioning through automation Spot Fleet Request
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling overview Amazon EC2 Auto Scaling AWS Auto Scaling Application Auto Scaling
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scaling EC2 resources Manual scaling Dynamic scalingScheduled scaling
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Introducing predictive scaling Manual scaling Dynamic scalingScheduled scaling Predictive scaling New!
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Prediction = better planning Weather Traffic Time Electricity Water
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Why predictive scaling? 40% traffic is cyclical Temporary external outages Applications with long warm-up times
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Predictive Scaling with Amazon EC2 Auto Scaling
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Benefits of predictive scaling: Use case #1 0 2000000 4000000 6000000 8000000 10000000 12000000 14000000
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Traffic forecast with predictive scaling 0 2000000 4000000 6000000 8000000 10000000 12000000 14000000 16000000 Series1 Series2
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Capacity forecast 0 50 100 150 200 0 2000000 4000000 6000000 8000000 10000000 12000000 14000000 16000000 Series1 Series2 Series3
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Responsiveness during a spike -10 40 90 140 190 240 0 2000000 4000000 6000000 8000000 10000000 12000000 14000000 1 2 3 4 5 6 7 Series1 Series2 Series3
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Benefits of predictive scaling: Use case #2 0 100000 200000 300000 400000 500000 600000 700000 800000 Series1 Series2
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Capacity forecast with predictive scaling 0 5 10 15 20 25 30 35 40 0 100000 200000 300000 400000 500000 600000 700000 800000 Series1 Series2 Series3
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Response during an untimely dip 0 5 10 15 20 25 0 50000 100000 150000 200000 250000 300000 350000 Series1 Series2 Series3
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Benefits of predictive scaling: Use case #3 0 10000 20000 30000 40000 50000 60000 Series1 Series2
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Configuring predictive scaling Load metric: Scaling metric:
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Configuring predictive scaling…cont’d
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Predictive scaling in Amazon EC2 Auto Scaling Machine learning technology behind the scenes Machine learning model Billions of data points from Amazon.com Load metric and forecasts next two days based on the pre-trained model Performs regression analysis between load metric and scaling metric Schedules scaling actions for the next two days, hourly Repeats every day Capacity provisioning on-premises Capacity provisioning with dynamic scaling Capacity provisioning with predictive scaling and dynamic scaling Time Load/Capacity Time Load/Capacity Time Load/Capacity Provisioned capacity Actual capacity demand
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Predictive scaling with target tracking • With target tracking • Without target tracking
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Genesys Gartner names Genesys a leader in the 2018 Magic Quadrant for Contact Center Infrastructure … (23 times and counting)
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Genesys platforms
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. PureCloud deployment
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Infrastructure scale get-discovered-resource-counts
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Deployments per week 1527 505 348 1 2 3 Numberofdeployments Deployment types
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Problem we are trying to solve Highly available platform while optimizing for cost Due to security and compliance reasons, we do not fail over across regions Each region has unique usage pattern. As a result each region needs to be tuned constantly for capacity Our frequency of adjusting scaling settings has reduced our capability to focus on our core competencies.
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Asia Pacific (Tokyo)US East (N. Virginia) EU (Ireland) Daily throughput across regions
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. We had an accident earlier this year!
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Sharp spike in traffic Deploy Roll Back Error Spike Fix deployed
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. ASG total instance count RollBack Scale-up – sharp spike in traffic. Resulted into a spike in error rate Fixed ASG min values New code deploy Scaled down Low traffic
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Daily scale up with predictive scaling Schedule scale-up Enable predictive scaling Predictive Dynamic Guard rail Dynamic Controlled scale-upSharp scale- up
  • 34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Predictive scaling might have helped here Guard rail??
  • 35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Due to our use of Red-Black deployment strategy, almost all of our ASG’s did not have enough historical data Lessons learned ALB metrics are supported but ELB are not! We can rely on predictive & dynamic scaling to auto-adjust our capacity We still need to track and monitor our data & cache tier We are not quite ready for 100% auto-pilot
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. What’s next? • Roll out predictive scaling to more services • “Forecast only” option is very powerful on its own • Review and verify proposed changes • Identify cost optimizations (e.g., Reserved Instance)
  • 37. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Availability US East (Virginia) US East (Ohio) US West (Oregon) EU (Ireland) Asia Pacific (Singapore)
  • 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Get started https://aws.amazon.com/autoscaling/
  • 39. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Kal Patel kal.patel@genesys.com Prasad Sristi sristips@amazon.com www.linkedin.com/in/prasadsristi
  • 40. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.