Top Banner
CloudConf – 20 April 2018 AWS Cost Optimization: from $$$ to $$$/4 Marco Viganò Digital CTO @Sasha0423
24

AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

Jun 04, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

AWS Cost Optimization: from $$$ to $$$/4

Marco ViganòDigital CTO@Sasha0423

Page 2: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

CN.numbers // by month

30M Unique Visitors250M Page Views

20% Desktop 80% Mobile

46% SEO 29% Social

Page 3: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

• Infrastructure scaling problems due to traffic boost• Non optimal delivery and uptime• Aggressive time to market• No automation • Costs

onPremise(CN) = Error 500 Internal Server Error

2013 / 2014

Page 4: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

Wave 1: the pilot

Page 5: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

CN.pilot === “Wired.it”

MigrationPreparationEvaluation Tuning

Pilot Cloud migrationEngagement of team

Page 6: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

• Infrastructure migrated AS IS -> no optimization for the cloud• 150 Server + 30 DB + more than 50 LB• Application redundancy• Costs explosion:

CN #epicfail

on premise +cloud +people +external providers =_______________ a lot of money!!!

Page 7: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

Wave 2: consolidation(start Q3 2014)

Page 8: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

CN.blueprint

Page 9: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

end of wave 2 (2015): ROI

Page 10: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

Wave 3: thinking Serverless(start Q3 2014)

Page 11: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

Serverless(CN.Vogue().photovogue)

Some numbers:• > 300,000 photographers

• more than 800,000 photos

• image size up to 50/60 Mb

The Challenge:• IT infrastructure wasn’t able to

manage the website traffic: problems in scaling

• costs

Going Serverless:• Quicker provisioning of resources:

from days to hours

• No scaling problems due to traffic boost

• 30% Costs saving

Page 12: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

end of wave 3 (2016)

Page 13: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

Wave 4: reserve capacity (start in Q2 2016 – running in 2017/2018)

Page 14: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

Predictable Workloads

Page 15: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

• 1 year / 3 years

• CN.Italy.saving[‘2016’] = 35%

• CN.Italy.saving[‘2017’] = 60%

• CN.Italy.saving[‘2018’] = VMs + DB + DWHPay as yo go Reserved Capacity

AWS.Reserved_Instances(CN);

Page 16: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

2017 costs = On Premise / 4

Page 17: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

Wave 5: container(start Q4 2017 - runninng)

Page 18: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

Page 19: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

Page 20: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

Turn off the lights

Page 21: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

Turn off the lights

25% 25% 25% 25%

• CPU from 8pm to 8am

• 0.2$/h0.2$/h x 4VMs x 24h x 365day = 7008 $

• Turn of from 8pm to 8am12h x 365day = 4380h saving = 876$

• 7008$ - 876$ = 6132$

• 12.5% Saving

33% 33% 33%

Page 22: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

summary

Page 23: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

2013/2014 >150 servers!30 Databases

2015: ROI!!!!2016Change Mindset:Thinking Serverless- Photovogue- Starting reducing costs

From an angry CFO… to a happy CFO :)

2017Infrastucture improvements50 servers - 8 DatabasesCosts = on premise / 4

On premise

2018Continuos improvements:Serverless *.*Docker / K8

Page 24: AWS Cost Optimization: from $$$ to $$$/4Going Serverless: • Quicker provisioning of resources: from days to hours • No scaling problems due to traffic boost • 30% Costs saving

CloudConf – 20 April 2018

Thank You

Marco Viganò@Sasha0423