SlideShare a Scribd company logo
1 of 18
Download to read offline
How to squeeze AWS costs
Jacek Migdał
Warsaw, AWS User Group, 2015-09-24
Who am I? The Cloud Juggler!
Senior Software Engineer at
Tripled engineering headcount in Europe!
We do logs in cloud:
● supercharged grep | awk in the browser
● Google for your internal infrastructure
Many TB / day / client
AWS ~= Industrial revolution
Side effect: cost ~= pollution
AWS bill. Engineering productivity or play?
Challenge #1: Know your resources
Run and forget.
Problem both in development
and production.
Solution #1: Know your resources
Separate dev and prod:
● Separate AWS accounts.
● Consolidated billing.
● Simple to monitor and delete resources.
● Additional benefits: isolation and
security.
Solution #1: Know your resources
Monitor proactively:
● Tag and name resources in production.
● Setup monitoring rules.
● Get alert if you go over the limit.
● Either AWS or 3rd party (CloudHealth).
Solution #1: Know your resources
Shutdown by default:
● Terminate development resources after
business hours.
● Notify by email.
● Need to mark them to persist them.
Challenge #2: Server capacity planning
Majority of the costs are EC2.
Some planning is needed to be
cost efficient.
Solution #2: Server capacity planning
Best way to run machines:
● Commit for a year, get 40% discount ->
Reserved Instance.
● Use auto-scaling and spot.
● Replace with S3, DynamoDB, ...
Solution #2: Server capacity planning
Determine limiting metric and pick:
● Instance family (c3, m3, r3, …).
● Right-size instance type and cluster size.
Initially guess than benchmark.
Optimize the code!
Challenge #3: I have 100 items on my plate.
We are too busy and cost is yet
another thing.
We don’t have time to do
everything.
Solution #3: I have 100 items on my plate.
Rhythm:
● Buy RI regularly (e.g. monthly).
● Inspect aws resources regularly.
● Setup cost alerts at different levels.
Solution #3: I have 100 items on my plate.
Standardize and simplify:
● Instance types: fewer is easier for RI.
● Divide system into smaller parts by tags.
● Single owner with fallback.
Solution #3: I have 100 items on my plate.
Define and measure:
● usage metrics: e.g. page views
● potential optimizations impact vs. effort
If we have data, we will make the right
decision.
If we have opinions, let's go with mine.
Thank you
Images
1. Public domain:
https://pl.wikipedia.org/wiki/Rewolucja_przemys%C
5%82owa#/media/File:Hartmann_Maschinenhalle_1
868_(01).jpg
2. Public domain:
https://en.wikipedia.org/wiki/Widnes#/media/File:Wi
dnes_Smoke.jpg
3. Creative Commons:
https://commons.wikimedia.org/wiki/File:Money_Ca
sh.jpg

More Related Content

Similar to How to squeeze AWS costs

Similar to How to squeeze AWS costs (20)

Lessons learnt building a Distributed Linked List on S3
Lessons learnt building a Distributed Linked List on S3Lessons learnt building a Distributed Linked List on S3
Lessons learnt building a Distributed Linked List on S3
 
Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS ServicesOptimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS Services
 
Cost Optimization at Scale
Cost Optimization at ScaleCost Optimization at Scale
Cost Optimization at Scale
 
Cost optimization on AWS
Cost optimization on AWSCost optimization on AWS
Cost optimization on AWS
 
iFood on Delivering 100 Million Events a Month to Restaurants with Scylla
iFood on Delivering 100 Million Events a Month to Restaurants with ScyllaiFood on Delivering 100 Million Events a Month to Restaurants with Scylla
iFood on Delivering 100 Million Events a Month to Restaurants with Scylla
 
AWS Webcast - Journey through the Cloud - Cost Optimization
AWS Webcast - Journey through the Cloud - Cost OptimizationAWS Webcast - Journey through the Cloud - Cost Optimization
AWS Webcast - Journey through the Cloud - Cost Optimization
 
Ml ops on AWS
Ml ops on AWSMl ops on AWS
Ml ops on AWS
 
AWS Sydney Summit 2013 - Optimizing AWS Applications and Usage to Reduce Costs
AWS Sydney Summit 2013 - Optimizing AWS Applications and Usage to Reduce CostsAWS Sydney Summit 2013 - Optimizing AWS Applications and Usage to Reduce Costs
AWS Sydney Summit 2013 - Optimizing AWS Applications and Usage to Reduce Costs
 
Start Up Austin 2017: Don't Overspend! Cost Optimization Best Practices to Re...
Start Up Austin 2017: Don't Overspend! Cost Optimization Best Practices to Re...Start Up Austin 2017: Don't Overspend! Cost Optimization Best Practices to Re...
Start Up Austin 2017: Don't Overspend! Cost Optimization Best Practices to Re...
 
Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS ServicesOptimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS Services
 
Advanced Topics - Session 3 - Optimizing AWS Applications
Advanced Topics - Session 3 - Optimizing AWS ApplicationsAdvanced Topics - Session 3 - Optimizing AWS Applications
Advanced Topics - Session 3 - Optimizing AWS Applications
 
Cloud Economics, from Genesis to Scale
Cloud Economics, from Genesis to ScaleCloud Economics, from Genesis to Scale
Cloud Economics, from Genesis to Scale
 
Webinar: Choosing the Right Shard Key for High Performance and Scale
Webinar: Choosing the Right Shard Key for High Performance and ScaleWebinar: Choosing the Right Shard Key for High Performance and Scale
Webinar: Choosing the Right Shard Key for High Performance and Scale
 
Optimizing Your AWS Applications and Usage to Reduce Costs
Optimizing Your AWS Applications and Usage to Reduce CostsOptimizing Your AWS Applications and Usage to Reduce Costs
Optimizing Your AWS Applications and Usage to Reduce Costs
 
AWS Costs From a Finance Lens
AWS Costs From a Finance LensAWS Costs From a Finance Lens
AWS Costs From a Finance Lens
 
Data Science in the Cloud @StitchFix
Data Science in the Cloud @StitchFixData Science in the Cloud @StitchFix
Data Science in the Cloud @StitchFix
 
Using Graphs for Feature Engineering_ Graph Reduce-2.pdf
Using Graphs for Feature Engineering_ Graph Reduce-2.pdfUsing Graphs for Feature Engineering_ Graph Reduce-2.pdf
Using Graphs for Feature Engineering_ Graph Reduce-2.pdf
 
International software testing conference 2017 fergal hynes
International software testing conference 2017 fergal hynesInternational software testing conference 2017 fergal hynes
International software testing conference 2017 fergal hynes
 
2016 Utah Cloud Summit: TCO & Cost Optimization
2016 Utah Cloud Summit: TCO & Cost Optimization2016 Utah Cloud Summit: TCO & Cost Optimization
2016 Utah Cloud Summit: TCO & Cost Optimization
 
DA 592 - Term Project Presentation - Berker Kozan Can Koklu - Kaggle Contest
DA 592 - Term Project Presentation - Berker Kozan Can Koklu - Kaggle ContestDA 592 - Term Project Presentation - Berker Kozan Can Koklu - Kaggle Contest
DA 592 - Term Project Presentation - Berker Kozan Can Koklu - Kaggle Contest
 

Recently uploaded

Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
FIDO Alliance
 
Microsoft BitLocker Bypass Attack Method.pdf
Microsoft BitLocker Bypass Attack Method.pdfMicrosoft BitLocker Bypass Attack Method.pdf
Microsoft BitLocker Bypass Attack Method.pdf
Overkill Security
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
FIDO Alliance
 

Recently uploaded (20)

Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
Vector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptxVector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptx
 
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream Processing
 
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
 
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdfFrisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!
 
Microsoft BitLocker Bypass Attack Method.pdf
Microsoft BitLocker Bypass Attack Method.pdfMicrosoft BitLocker Bypass Attack Method.pdf
Microsoft BitLocker Bypass Attack Method.pdf
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
 
Top 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development CompaniesTop 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development Companies
 
Generative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdfGenerative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdf
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
 
2024 May Patch Tuesday
2024 May Patch Tuesday2024 May Patch Tuesday
2024 May Patch Tuesday
 
Cyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptx
Cyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptxCyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptx
Cyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptx
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Navigating the Large Language Model choices_Ravi Daparthi
Navigating the Large Language Model choices_Ravi DaparthiNavigating the Large Language Model choices_Ravi Daparthi
Navigating the Large Language Model choices_Ravi Daparthi
 

How to squeeze AWS costs

  • 1. How to squeeze AWS costs Jacek Migdał Warsaw, AWS User Group, 2015-09-24
  • 2. Who am I? The Cloud Juggler! Senior Software Engineer at Tripled engineering headcount in Europe! We do logs in cloud: ● supercharged grep | awk in the browser ● Google for your internal infrastructure Many TB / day / client
  • 3. AWS ~= Industrial revolution
  • 4. Side effect: cost ~= pollution
  • 5. AWS bill. Engineering productivity or play?
  • 6. Challenge #1: Know your resources Run and forget. Problem both in development and production.
  • 7. Solution #1: Know your resources Separate dev and prod: ● Separate AWS accounts. ● Consolidated billing. ● Simple to monitor and delete resources. ● Additional benefits: isolation and security.
  • 8. Solution #1: Know your resources Monitor proactively: ● Tag and name resources in production. ● Setup monitoring rules. ● Get alert if you go over the limit. ● Either AWS or 3rd party (CloudHealth).
  • 9. Solution #1: Know your resources Shutdown by default: ● Terminate development resources after business hours. ● Notify by email. ● Need to mark them to persist them.
  • 10. Challenge #2: Server capacity planning Majority of the costs are EC2. Some planning is needed to be cost efficient.
  • 11. Solution #2: Server capacity planning Best way to run machines: ● Commit for a year, get 40% discount -> Reserved Instance. ● Use auto-scaling and spot. ● Replace with S3, DynamoDB, ...
  • 12. Solution #2: Server capacity planning Determine limiting metric and pick: ● Instance family (c3, m3, r3, …). ● Right-size instance type and cluster size. Initially guess than benchmark. Optimize the code!
  • 13. Challenge #3: I have 100 items on my plate. We are too busy and cost is yet another thing. We don’t have time to do everything.
  • 14. Solution #3: I have 100 items on my plate. Rhythm: ● Buy RI regularly (e.g. monthly). ● Inspect aws resources regularly. ● Setup cost alerts at different levels.
  • 15. Solution #3: I have 100 items on my plate. Standardize and simplify: ● Instance types: fewer is easier for RI. ● Divide system into smaller parts by tags. ● Single owner with fallback.
  • 16. Solution #3: I have 100 items on my plate. Define and measure: ● usage metrics: e.g. page views ● potential optimizations impact vs. effort If we have data, we will make the right decision. If we have opinions, let's go with mine.
  • 18. Images 1. Public domain: https://pl.wikipedia.org/wiki/Rewolucja_przemys%C 5%82owa#/media/File:Hartmann_Maschinenhalle_1 868_(01).jpg 2. Public domain: https://en.wikipedia.org/wiki/Widnes#/media/File:Wi dnes_Smoke.jpg 3. Creative Commons: https://commons.wikimedia.org/wiki/File:Money_Ca sh.jpg