Cloud Cost Optimization
#whoami: yogesh sharma
• Cloud Architect @ Tata Consultancy
Services
• Overall 10+ years of experience, 5+ years
of experience in Cloud, DevOps
• AWS Community Builder
• 3x AWS Certifications
• Technical Speaker and Blogger
• Owner of https://multicloudwarrior.com/
https://www.linkedin.com/in/sharma-yogesh/
What to expect
• Cloud Cost Optimization- What, Why
• Pillars for Cost Optimization
• Cost Optimization Process
• Checklist
• Latest Trends
We all love Cloud and its Services…
AWS is for builders
You build it,
You run it,
You optimize it
But are we fully aware about Cloud Financials
Are we spending too much on unnecessary
stuff knowingly/unknowingly?
Pay for what you use
But how would you ensure that you pay
what you actually need?
Bill Formula:
Spend = Usage * Rate
Cloud Cost Optimization
Managing costs is a challenge for organizations using public cloud
services but also an opportunity to drive efficient consumption of IT.
Gartner’s Top Trends for Cloud:
• Cost optimization will drive
cloud adoption
• Insufficient cloud IaaS skills will
delay migrations
• Distributed cloud will support
expanded service availability
Pillars for Cost Optimization
Right-sizing Elasticity Pricing Models
Storage Classes Measure and Mechanisms Designing for Cost
Elasticity
• Scale up and down to meet
capacity requirements
based upon CPU, RAM,
network etc.
• Automatically turn
nonproduction off outside
of working hours
Think about:
•AWS Auto Scaling and EC2 Fleet
•AWS Instance Scheduler
•AWS CloudWatch
Auto-scaling
policies
Pricing Models
On- Demand
Pay-for-compute capacity
by the second with no
long-term commitments
Savings Plans & Reserved
Instances
Make a commitment and receive a
significant discount off compute
Spot Instances
Spare AWS EC2 Capacity at
saving up to 90%
off On-Demand prices
Spiky workloads to
Define needs
Committed &
steady-state usage
Fault-tolerant, flexible,
stateless workloads
If your bid > spot price → get an instance
If your bid < spot price → instance is terminated
Storage Classes
Amazon S3 Amazon Glacier
Infrequent Access
HOT WARM COLD
Provisioned IOPS
SSD (io1)
General Purpose
SSD (gp2)
Throughput Optimized
HDD (st1)
Cold HDD (io1)
Measure and Mechanisms
Designing for Cost
Consolidated Billing
Using AWS Organization
Go Serverless Unused Elastic IPs
Containerization
CloudFront
(Lower compute and caching)
Managed RDS
EC2 Spot
Cost Optimization Process
Biggest Strength- Architecture Flexibility
Main goal- Avoid unnecessary stuff
Unnecessary
Resources
Idling
Resources
Repetitive
Work
Tools that establish Cost Visibility
Measure: Monitor your workloads
Set up metrics to defines success and track progress
“What KPI makes sense for this workload?”
% Instances turned off daily
%instances right sized
%RI Utilization
Monitor AWS Resources Set Alarms Monitor Custom Metrics
View Graphs and Statistics Monitor & React to
Resource Changes
Measure- AWS Billing/Cost Dashboard
• Use AWS Billing and Cost
Management Dashboard
• Set up your monthly AWS
budget
• Dive deep with AWS Cost
Explorer
Also checkout-
https://calculator.s3.amazonaws.com/index.html
https://calculator.aws/
https://aws.amazon.com/economics/
Measure: Cost Explorer
Use Cost Explorer Personalized
Recommendations and decide to go with
Reserved Instances Category-
Standard, Convertible and Scheduled RIs
Checklist
Latest Trends- Launched in re:Invent 2020
Thank you!

AWS Cloud Cost Optimization

  • 1.
  • 2.
    #whoami: yogesh sharma •Cloud Architect @ Tata Consultancy Services • Overall 10+ years of experience, 5+ years of experience in Cloud, DevOps • AWS Community Builder • 3x AWS Certifications • Technical Speaker and Blogger • Owner of https://multicloudwarrior.com/ https://www.linkedin.com/in/sharma-yogesh/
  • 3.
    What to expect •Cloud Cost Optimization- What, Why • Pillars for Cost Optimization • Cost Optimization Process • Checklist • Latest Trends
  • 4.
    We all loveCloud and its Services… AWS is for builders You build it, You run it, You optimize it
  • 5.
    But are wefully aware about Cloud Financials Are we spending too much on unnecessary stuff knowingly/unknowingly?
  • 6.
    Pay for whatyou use But how would you ensure that you pay what you actually need? Bill Formula: Spend = Usage * Rate
  • 7.
    Cloud Cost Optimization Managingcosts is a challenge for organizations using public cloud services but also an opportunity to drive efficient consumption of IT. Gartner’s Top Trends for Cloud: • Cost optimization will drive cloud adoption • Insufficient cloud IaaS skills will delay migrations • Distributed cloud will support expanded service availability
  • 8.
    Pillars for CostOptimization Right-sizing Elasticity Pricing Models Storage Classes Measure and Mechanisms Designing for Cost
  • 9.
    Elasticity • Scale upand down to meet capacity requirements based upon CPU, RAM, network etc. • Automatically turn nonproduction off outside of working hours Think about: •AWS Auto Scaling and EC2 Fleet •AWS Instance Scheduler •AWS CloudWatch Auto-scaling policies
  • 10.
    Pricing Models On- Demand Pay-for-computecapacity by the second with no long-term commitments Savings Plans & Reserved Instances Make a commitment and receive a significant discount off compute Spot Instances Spare AWS EC2 Capacity at saving up to 90% off On-Demand prices Spiky workloads to Define needs Committed & steady-state usage Fault-tolerant, flexible, stateless workloads If your bid > spot price → get an instance If your bid < spot price → instance is terminated
  • 11.
    Storage Classes Amazon S3Amazon Glacier Infrequent Access HOT WARM COLD Provisioned IOPS SSD (io1) General Purpose SSD (gp2) Throughput Optimized HDD (st1) Cold HDD (io1)
  • 13.
  • 14.
    Designing for Cost ConsolidatedBilling Using AWS Organization Go Serverless Unused Elastic IPs Containerization CloudFront (Lower compute and caching) Managed RDS EC2 Spot
  • 15.
    Cost Optimization Process BiggestStrength- Architecture Flexibility Main goal- Avoid unnecessary stuff Unnecessary Resources Idling Resources Repetitive Work
  • 16.
    Tools that establishCost Visibility
  • 18.
    Measure: Monitor yourworkloads Set up metrics to defines success and track progress “What KPI makes sense for this workload?” % Instances turned off daily %instances right sized %RI Utilization Monitor AWS Resources Set Alarms Monitor Custom Metrics View Graphs and Statistics Monitor & React to Resource Changes
  • 19.
    Measure- AWS Billing/CostDashboard • Use AWS Billing and Cost Management Dashboard • Set up your monthly AWS budget • Dive deep with AWS Cost Explorer Also checkout- https://calculator.s3.amazonaws.com/index.html https://calculator.aws/ https://aws.amazon.com/economics/
  • 20.
    Measure: Cost Explorer UseCost Explorer Personalized Recommendations and decide to go with Reserved Instances Category- Standard, Convertible and Scheduled RIs
  • 21.
  • 22.
    Latest Trends- Launchedin re:Invent 2020
  • 23.