SlideShare a Scribd company logo
1 of 58
Download to read offline
Stephen A. Elliott
Optimizing Your AWS Applications and Usage to Reduce Costs
Sr. Product Manager, EC2
Jason Stowe
CEO, Cycle Computing
Guest presenter:
Agenda
• Objective
– Review the spectrum of ways to save money on your AWS application
• Tenet: Fit the cloud to your product and business model
– Use Only What You Need (and pay only for what you use!)
– Measure and Manage
– Scale Opportunistically
• Customer Case Study
– Cycle Computing
Use Only What You Need
And pay only for what you use!
Scale on demand
Rigid On-Premise Resources
Waste
Customer
Dissatisfaction
Actual demand
Predicted Demand
Capacity
Time
Elastic Cloud Resources
Actual demand
Resources scaled to demand
Capacity
Time
VS.
Use only what you need: AWS cost savings opportunities
• Right-size your cloud resources
– Use resources that suit your needs (instance types, storage options, etc.)
– Improve performance: reduce churn, underutilization, bottlenecks
– Lower costs: maximize your output per dollar, don’t pay for performance you don’t
require
• Fit your payment model to your business model
– Do you value flexibility or predictability?
– Use a portfolio of payment models
• Measure and manage your application and cloud resources
– Monitor your applications to identify new savings opportunities
Right-size your cloud resources: broad EC2 selection
• An instance type for
every purpose
• Assess your memory
& CPU requirements
– Fit your application
to the resource
– Fit the resource to
your application
• Only use a larger
instance when
needed
Optimize your storage choice too: S3 & Glacier
• S3 and Glacier are both:
– Secure
– Flexible
– Low-cost
– Scalable: over 1.3 trillion customer objects
– Durable: 99.999999999% (11 “9”s)
Amazon
Glacier
Choosing between S3 and Glacier
• Amazon Simple Storage Service (S3)
– Designed to serve static content at high volumes, low latency, frequent access
– Low cost: as low as 5.5¢ per GB-month (or 3.7¢ for reduced redundancy)
• Amazon Glacier
– Designed for long-term cold storage: infrequent access, long retrieval times (3-5 hrs)
– Extremely low-cost: 1¢ per GB-month
• Tips:
– Optimize access: Reduce payload size, # of accesses (e.g., consolidated logs)
– Monitor for unexpected access/growth patterns: e.g., misconfigured log archiving
– Set Lifecycle Policies: object expiration dates; auto-move S3 files to Glacier
Illumina, the leading provider of DNA sequencing
instruments, uses Glacier to store large blocks of
genomic data all over the world
Fit your payment model to your business model: EC2 pricing plans
On-Demand
Instances
Reserved
Instances
Spot
Instances
Pay as you go for computing
power
Flat hourly rate, no up-front
commitments
Pay an up-front fee for a
capacity reservation and a lower
hourly rate (up to 72% savings)
1-year or 3-year terms
RI Marketplace: sell RIs you no
longer need; buy RIs at a
discount
Pay what you want for spare EC2
capacity: your instances run if
your bid exceeds the Spot price
Potential for large scale at low
cost: When they’re available,
take advantage of 1,000s of Spot
Instances at up to 90% savings
10:00
10:05
10:10
10:15
Use a spectrum of payment models
For example:
Frontend Applications
on On-Demand/Reserved Instances
+
Backend Applications*
on Spot Instances
* e.g., batch video transcoding
Reserved Instance Marketplace: Buy and Sell Your RIs
• Benefits for Buyers:
– Same underlying EC2 hardware
– Buy RIs at a discount from AWS price
– Increased selection of term lengths &
prices
• Benefits for Sellers:
– Moving to a new AWS region
– Changing your instance type
– Switching operating systems
– Selling capacity when project ends
Measure and Manage
“If you cannot measure it, you cannot improve it.”
- Lord Kelvin
Overview of AWS Monitoring and Management Services
• AWS provides detailed cloud monitoring and management
– Consolidated Billing (see “Account Activity” navigation panel)
– CloudWatch (see AWS Management Console)
– Billing Alerts (see “Account Activity” navigation panel)
– Trusted Advisor (see “Support Center”)
– Other APIs: tags, programmatic access, etc.
• Third-party services are also available
Consolidated Billing: Single payer for a group of accounts
• One Bill for multiple accounts
• Easy Tracking of account
charges (e.g., download CSV of
cost data)
• Group Activities by Paying
Account (e.g., Dev, Stage, Test,
Prod)
• Volume Discounts can be
reached faster with combined
usage
• Reserved Instances are shared
across accounts (including RDS
Reserved DBs)
• AWS Credits are combined to
minimize your bill
Consolidated Billing Demo (1/3)
• Get an overall summary total
for all your users and accounts
Consolidated Billing Demo (2/3)
• From your payment account
login, view details of each
linked account in one place
Consolidated Billing Demo (3/3)
• Drill down into detail’s of each
account
• Download a CSV file for line
item details, then analyze via
spreadsheet, pivot tables, etc.
Amazon CloudWatch
• Overview
– Monitoring for AWS cloud resources and applications
• AWS Resources: EC2, RDS, EBS, ELB, SQS, SNS, DynamoDB, EMR, Auto Scaling, …
• Custom metrics from your application (use Put API call)
– Gain insight, set alarms and notifications, react immediately
– Start using within minutes, auto-scale with your application
• Sophisticated Automation
– Use CloudWatch metrics with Auto Scaling to dynamically scale EC2 instances
Use CloudWatch to monitor & manage resource usage
• Monitor your resource utilization
– Are you using the right instance type?
– Have you left instances idle?
– Is your instance usage level or bursty?
• Manage your resource utilization
– Move bursty workloads to other instances
– Rebalance your worker nodes
– Scale nodes automatically with Auto Scaling
Use CloudWatch to create Billing Alerts
• Billing Alerts notify you when estimated charges reach a given threshold
• Use Billing Alerts to track an individual developer, or your whole business
• Easily set up your billing alarm and actions
Trusted Advisor: Enterprise Strength Monitoring/Optimization
• Monitors and recommends
optimizations for:
– Cost
– Security
– Fault Tolerance
– Performance
• Available to customers with
Business and Enterprise-
level support
http://aws.amazon.com/premiumsupport/trustedadvisor/
Trusted Advisor: Cost Optimization Tips
Trusted Advisor: Performance Tips
Third-party services to optimize your AWS usage
Scale Opportunistically
Opportunity favors the prepared application
Time-to-Result Case 1: Value of result quickly diminishes
Example:
Engineering
simulation
Delay  Loss of
productivity,
project slips
Time-to-Result Case 2: Result is valuable…until it’s not
Example:
Weekend
regression tests
Delay  Minimal
impact until
8:00AM Monday
Consider Spot Instances for greater savings and scale
• Spot in a nutshell
– Spot instances run when Your Bid ≥ Spot Price
– Spot instances = Spare EC2 instances
– Spot instances might be interrupted at any time
• Benefits
– Savings: Up to 90% off On-Demand
– Scale: Access up to 1,000s of EC2 instances
• To use Spot
– Decide on a bid price
– Launch via Console, API, Auto Scaling
– Monitor Bid Statuses via Console/API
What applications work on Spot?
• Good Spot applications are:
– Delayable: to balance SLA/cost
– Scalable: “embarrassingly parallel”
– Fault-tolerant: can be terminated without losing all work
– Portable across regions, AZs, instance types
• Examples:
– MapReduce (Hadoop, Amazon EMR)
– Scientific Computing (Monte Carlo simulations)
– Batch Processing (video transcoding)
– Financial Computing (high-frequency trading algorithm backtesting)
– and many others…
Lucky Oyster crawled 3.4B Web Pages,
building a 400M entry index in around
14 hours for $100 (>85% savings)!
• Auto Scaling auto-sizes your cluster based on preset triggers and schedules
• Integrates with CloudWatch metrics
• Use Auto Scaling to
– Improve customer experience, application performance
– Maximize CPU/IO/Memory utilization
– Optimize other metrics
Use Auto Scaling to dynamically scale your app
Scale with Real-Time Demand
Auto-Scaling Example: Netflix
Follow the Money vs. Follow the Customer
• Optimize utilization
– Auto Scale on utilization metrics: CPU, memory, requests, connections, …
• Optimize price paid
– Scale with Spot instances when Spot prices are low
– e.g., Run batch processes off-peak (nights, weekends) when Spot prices are lower
Follow the Money vs. Follow the Customer
• Optimize customer experience with Auto Scaling
• Example 1: Scale resources to meet customer demand
– Video service Auto Scales instances to respond to customer web service requests
• Example 2: Scale resources to ensure fresh results
– A scientific paper search engine Auto Scales on queue depth (# of new docs to crawl)
– 10 instances steady state and up to 5,000+ to ensure minimum throughput time
• Example 3: Scale resources preemptively before large demand
– A TV show marketing site scales up before the show and back down after
Cost-Saving Examples
• Achieve potentially
large savings by
profiling your
application and
paying only for
what you need
Base Case Savings Examples
You run 10 m3.2xlarge’s
On-Demand 24x7:
10 instances
X $1.00/inst-hours
X 24 hours/day
X ~30.5 days/month
= $7,320/month
If you need to run 100% of the time, indefinitely:
10x 3-yr Heavy RIs @ 100% Utilization
= $2,731/month (63% savings)
If you can layer RIs and On Demand to meet demand:
4x 3-yr Heavy RIs @ 100% Utilization
4x 3-yr Light RIs @ 15% Utilization
2x On-Demand @ 5% Utilization
= $1,843/month (75% savings)
If you Auto Scale from 2 to 10 instances around
primetime TV (6-11pm, Mon-Fri):
2x 3-yr Heavy RIs @ 100% Utilization
8x 3-yr Light RIs @ 15% Utilization
= $1,683/month (77% savings)
If you can use 40x Spot Instances at 25% up-time:
= $840/month (89% savings)
Customer Example:
39 Core-Years of Science
Cycle Computing’s 10,600-Instance Run
Jason A. Stowe
CEO
@jasonstowe, @cyclecomputing
At Cycle, we believe
innovation is shackled
by a lack of access
to compute and data
The Scientific Method
Ask a
Question
Hypothesize Predict
Experiment /
Test
Analyze Final Results
Test and Analyze stages
require the most time,
compute, and data
The Scientific Method
Ask a
Question
Hypothesize Predict
Experiment /
Test
Analyze Final Results
Any improvements to this
cycle yield multiplicative
benefits
If we democratize access to
high performance compute,
we’ll accelerate breakthroughs
Utility HPC in the News
WSJ, NYTimes, Wired, Bio-IT World BusinessWeek
Computing access is a challenge across many industries
All areas of scientific, engineering & financial research need affordable compute
• Cycle’s session at AWS Re:Invent
– Johnson & Johnson, Novartis, Life Technologies, Pacific Life Insurance, Hartford
Insurance Group talking about AWS, Cycle & Utility HPC
• Other clients that need affordable infrastructure
– 2 of Big 3 Finance
– 6 of Big 8 Pharmaceutical
– 3 of Big 5 Life Insurance
– 2 of Big 3 Next Generation Sequencing
– Start-ups to Fortune 100s, corporations to public research institutions
Cycle’s software orchestrates High Performance Computing,
Spot Instances drive down infrastructure costs
How does Spot help us do this?
Start-up
12.5 compute-years
in 3 hours on 50,000
cores ($20Million)
for < $3,000
Big 10 Pharma
154,000 simulations
on 30,000 cores in 9
hours for $10,000
Identified 3 new
leads in wet lab
Research Institute:
1 million hours or
115 compute years,
in 1 week
for $19,555
Cycle’s view of this cluster:
Big 10 Pharma Created
10,600 instance cluster
($44M) in 2 hours,
running
39 years of compute
in 11 hours for $4,372
Most Recent Utility Supercomputer
server count:
AWS Console view:
Utility HPC / BigData Orchestration Software
• Scale clusters from
50–50,000 cores
• Error-handling, reliability
• Data scheduling:
internal  cloud
• Automated Security,
Encryption Framework
• Audit, compliance
• Reporting, chargeback
Automate spot bidding =>
Shared FS
Scale from 50–50,000+ cores
CycleCloud Deploys Secured, Auto-scaled HPC Clusters
User
Check job load
Calculate ideal HPC cluster
Legacy
Internal
HPC
Load-based Spot bidding
Properly price the bids
Manage Spot Instance loss
Spot Instance Execute Nodes
(auto-started & auto-stopped)
FS /
S3
HPC Cluster
On-Demand Execute Nodes
Data Scheduling to place data
HPC Orchestration to
Handle Spot Instance Bid & Loss
THANK YOU!
Email: jason.stowe@cyclecomputing.com
Twitter: @jasonastowe, @cyclecomputing
Blog: blog.cyclecomputing.com
Conclusion (Part I):
Fit the cloud to your product and business model
• Use Only What You Need (and pay only for what you use!)
• Measure and Manage
• Scale Opportunistically
An example putting it all together: Saving on Batch Processing
http://aws.amazon.com/architecture/
3. Scale
Opportunistically:
Auto Scale worker
nodes based on size
of input queue1. Pay Only
for What You
Use: Right-
size your
cloud
resources
2. Monitor and
Manage your system
with CloudWatch,
Billing Alerts, Trusted
Advisor
Conclusion (Part II):
Use the cloud to create new products & business models
On-Premises
• Failure is
expensive
• Experiment
infrequently
• Less Innovation
Optimized Cloud
• Failure is
inexpensive
• Experiment early
and often
• More Innovation
THANK YOU
APPENDICES
Other simple optimization tips
• Don’t forget to…
– Disassociate unused EIPs
– Delete unassociated Amazon EBS volumes
– Delete older Amazon EBS snapshots
– Leverage Amazon S3 Object Expiration
– Defer batch activity (e.g., Hadoop) to periods
when your RIs are regularly underutilized
(For Enterprise-level support, Trusted Advisor can
help with some of these.)
• Netflix’s Janitor Monkey automates clean-up
– Reduces “unintentional” resource usage
– Reduces cost and clutter
Other Spot Instance Use Cases
• Batch Processing: Generic batch processing (scale out computing)
• Hadoop: MapReduce processing (e.g., Search, Big Data)
• Scientific Computing: Scientific trials, simulations, analysis
• Video/Image Processing: Encoding, transcoding, rendering
• Testing: Continuous testing, load testing websites, etc.
• Web/Data Crawling: Analyzing data and processing it
• Financial: Hedge fund analytics, energy trading, etc.
• HPC/HTC: Embarrassingly parallel jobs
• Cheap Compute: Backend servers for Facebook games, MineCraft
Steady State
Example: Corporate Website
Spiky Predictable
Example: Marketing
Promotions Website
Uncertain unpredictable
Example: Social game or
Mobile Website
Application Usage Patterns
Amazon Elastic MapReduce
Hadoop Cluster
HDFS
Task
Node
Task
Node
Core
Node
Core
Node
Input
Data Output
Data
Amazon S3
Metadata
Amazon SimpleDB
BI Apps
Upload large datasets or
log files directly
Data
Source
Code/
Scripts
Amazon S3
Service
Amazon Elastic
MapReduce
HiveQL
Pig Latin
Cascading
Mapper
Reducer
Runs multiple
JobFlow Steps
Name
Node
JDBC/ODBC
HiveQL
Pig Latin
Query
Amazon EMR (Hadoop): Run Task Nodes on Spot
Paying as you go on AWS lowers your Total Cost of Ownership
• By paying only for what you use,
you can save on:
– Servers
– Storage
– Network
– Environment
– Administration
• Example: 82% TCO savings for
Thomsen Reuters
• Learn more:
aws.amazon.com/economics
Example Spot Customers
Example Architecture 2: Web Application Hosting
http://aws.amazon.com/architecture/

More Related Content

What's hot

AWS December 2015 Webinar Series - Strategies to Quantify TCO & Optimize Cost...
AWS December 2015 Webinar Series - Strategies to Quantify TCO & Optimize Cost...AWS December 2015 Webinar Series - Strategies to Quantify TCO & Optimize Cost...
AWS December 2015 Webinar Series - Strategies to Quantify TCO & Optimize Cost...
Amazon Web Services
 
Migrating Enterprise Applications to AWS
Migrating Enterprise Applications to AWSMigrating Enterprise Applications to AWS
Migrating Enterprise Applications to AWS
Tom Laszewski
 

What's hot (20)

Top 5 Ways to Optimize for Cost Efficiency with the Cloud
Top 5 Ways to Optimize for Cost Efficiency with the CloudTop 5 Ways to Optimize for Cost Efficiency with the Cloud
Top 5 Ways to Optimize for Cost Efficiency with the Cloud
 
AWS S3 Cost Optimization
AWS S3 Cost OptimizationAWS S3 Cost Optimization
AWS S3 Cost Optimization
 
Optimising TCO with AWS at Websummit Dublin
Optimising TCO with AWS at Websummit DublinOptimising TCO with AWS at Websummit Dublin
Optimising TCO with AWS at Websummit Dublin
 
Best Practices for AWS Cloud Cost Optimization
Best Practices for AWS Cloud Cost OptimizationBest Practices for AWS Cloud Cost Optimization
Best Practices for AWS Cloud Cost Optimization
 
EC2 Performance, Spot Instance ROI and EMR Scalability
EC2 Performance, Spot Instance ROI and EMR ScalabilityEC2 Performance, Spot Instance ROI and EMR Scalability
EC2 Performance, Spot Instance ROI and EMR Scalability
 
AWS Cost Optimisation - November 2018
AWS Cost Optimisation - November 2018AWS Cost Optimisation - November 2018
AWS Cost Optimisation - November 2018
 
Cloud Economics, from Genesis to Scale
Cloud Economics, from Genesis to ScaleCloud Economics, from Genesis to Scale
Cloud Economics, from Genesis to Scale
 
AWS December 2015 Webinar Series - Strategies to Quantify TCO & Optimize Cost...
AWS December 2015 Webinar Series - Strategies to Quantify TCO & Optimize Cost...AWS December 2015 Webinar Series - Strategies to Quantify TCO & Optimize Cost...
AWS December 2015 Webinar Series - Strategies to Quantify TCO & Optimize Cost...
 
AWS Webcast - Total Cost of (Non) Ownership
AWS Webcast - Total Cost of (Non) Ownership  AWS Webcast - Total Cost of (Non) Ownership
AWS Webcast - Total Cost of (Non) Ownership
 
AWS Summit London 2014 | Optimising TCO for the AWS Cloud (100)
AWS Summit London 2014 | Optimising TCO for the AWS Cloud (100)AWS Summit London 2014 | Optimising TCO for the AWS Cloud (100)
AWS Summit London 2014 | Optimising TCO for the AWS Cloud (100)
 
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
 
AWS Summit Sydney 2014 | Moving to the Cloud. What does it Mean to your Business
AWS Summit Sydney 2014 | Moving to the Cloud. What does it Mean to your BusinessAWS Summit Sydney 2014 | Moving to the Cloud. What does it Mean to your Business
AWS Summit Sydney 2014 | Moving to the Cloud. What does it Mean to your Business
 
AWS Summit Auckland 2014 | Moving to the Cloud. What does it Mean to your Bus...
AWS Summit Auckland 2014 | Moving to the Cloud. What does it Mean to your Bus...AWS Summit Auckland 2014 | Moving to the Cloud. What does it Mean to your Bus...
AWS Summit Auckland 2014 | Moving to the Cloud. What does it Mean to your Bus...
 
The Total Cost of Ownership of Cloud Storage (TCO) - AWS Cloud Storage for th...
The Total Cost of Ownership of Cloud Storage (TCO) - AWS Cloud Storage for th...The Total Cost of Ownership of Cloud Storage (TCO) - AWS Cloud Storage for th...
The Total Cost of Ownership of Cloud Storage (TCO) - AWS Cloud Storage for th...
 
Optimizing Total Cost of Ownership for the AWS Cloud
Optimizing Total Cost of Ownership for the AWS CloudOptimizing Total Cost of Ownership for the AWS Cloud
Optimizing Total Cost of Ownership for the AWS Cloud
 
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
 
Migrating Enterprise Applications to AWS
Migrating Enterprise Applications to AWSMigrating Enterprise Applications to AWS
Migrating Enterprise Applications to AWS
 
Optimizing Total Cost of Ownership for the AWS Cloud
Optimizing Total Cost of Ownership for the AWS CloudOptimizing Total Cost of Ownership for the AWS Cloud
Optimizing Total Cost of Ownership for the AWS Cloud
 
AWS APAC Webinar Series: How to Reduce Your Spend on AWS
AWS APAC Webinar Series: How to Reduce Your Spend on AWSAWS APAC Webinar Series: How to Reduce Your Spend on AWS
AWS APAC Webinar Series: How to Reduce Your Spend on AWS
 
How to Reduce your Spend on AWS
How to Reduce your Spend on AWSHow to Reduce your Spend on AWS
How to Reduce your Spend on AWS
 

Viewers also liked

(ARC302) Running Lean Architectures: How to Optimize for Cost Efficiency | AW...
(ARC302) Running Lean Architectures: How to Optimize for Cost Efficiency | AW...(ARC302) Running Lean Architectures: How to Optimize for Cost Efficiency | AW...
(ARC302) Running Lean Architectures: How to Optimize for Cost Efficiency | AW...
Amazon Web Services
 

Viewers also liked (20)

AWS Cost optimization at scale
AWS Cost optimization at scaleAWS Cost optimization at scale
AWS Cost optimization at scale
 
AWS Cost Allocation best practices: How high-growth businesses succeed
AWS Cost Allocation best practices: How high-growth businesses succeedAWS Cost Allocation best practices: How high-growth businesses succeed
AWS Cost Allocation best practices: How high-growth businesses succeed
 
Cost optimization on AWS
Cost optimization on AWSCost optimization on AWS
Cost optimization on AWS
 
How to get the most out of your cloud - Microsoft Cloud Day
How to get the most out of your cloud - Microsoft Cloud DayHow to get the most out of your cloud - Microsoft Cloud Day
How to get the most out of your cloud - Microsoft Cloud Day
 
(SPOT203) 3rd Annual Startup Launches moderated by Werner Vogels | AWS re:Inv...
(SPOT203) 3rd Annual Startup Launches moderated by Werner Vogels | AWS re:Inv...(SPOT203) 3rd Annual Startup Launches moderated by Werner Vogels | AWS re:Inv...
(SPOT203) 3rd Annual Startup Launches moderated by Werner Vogels | AWS re:Inv...
 
AWS Summit London - Keynote - Stephen Schmidt
AWS Summit London - Keynote - Stephen SchmidtAWS Summit London - Keynote - Stephen Schmidt
AWS Summit London - Keynote - Stephen Schmidt
 
UC San Diego AWS Cost Optimization Center
UC San Diego AWS Cost Optimization CenterUC San Diego AWS Cost Optimization Center
UC San Diego AWS Cost Optimization Center
 
AWS Cost Control
AWS Cost ControlAWS Cost Control
AWS Cost Control
 
Optimizing AWS S3 storage costs and usage
Optimizing AWS S3 storage costs and usageOptimizing AWS S3 storage costs and usage
Optimizing AWS S3 storage costs and usage
 
An MPI-IO Cloud Cluster Bioinformatics Summer Project (BDT205) | AWS re:Inven...
An MPI-IO Cloud Cluster Bioinformatics Summer Project (BDT205) | AWS re:Inven...An MPI-IO Cloud Cluster Bioinformatics Summer Project (BDT205) | AWS re:Inven...
An MPI-IO Cloud Cluster Bioinformatics Summer Project (BDT205) | AWS re:Inven...
 
(ISM309) Efficient Innovation:High-Velocity Cost Management at Netflix
(ISM309) Efficient Innovation:High-Velocity Cost Management at Netflix(ISM309) Efficient Innovation:High-Velocity Cost Management at Netflix
(ISM309) Efficient Innovation:High-Velocity Cost Management at Netflix
 
Introduction to Amazon EC2 Spot Instances
Introduction to Amazon EC2 Spot InstancesIntroduction to Amazon EC2 Spot Instances
Introduction to Amazon EC2 Spot Instances
 
(ARC302) Running Lean Architectures: How to Optimize for Cost Efficiency | AW...
(ARC302) Running Lean Architectures: How to Optimize for Cost Efficiency | AW...(ARC302) Running Lean Architectures: How to Optimize for Cost Efficiency | AW...
(ARC302) Running Lean Architectures: How to Optimize for Cost Efficiency | AW...
 
Understanding AWS Security
Understanding AWS SecurityUnderstanding AWS Security
Understanding AWS Security
 
Finding hidden waste in your AWS infrastructure - 2/11/16
Finding hidden waste in your AWS infrastructure - 2/11/16Finding hidden waste in your AWS infrastructure - 2/11/16
Finding hidden waste in your AWS infrastructure - 2/11/16
 
Seminar Report On Amazon Web Service
Seminar Report On Amazon Web ServiceSeminar Report On Amazon Web Service
Seminar Report On Amazon Web Service
 
AWS Webcast - Cost and Performance Optimization in Amazon RDS
AWS Webcast - Cost and Performance Optimization in Amazon RDSAWS Webcast - Cost and Performance Optimization in Amazon RDS
AWS Webcast - Cost and Performance Optimization in Amazon RDS
 
AWS Webinar: How to architect and deploy a multi tier share point server farm...
AWS Webinar: How to architect and deploy a multi tier share point server farm...AWS Webinar: How to architect and deploy a multi tier share point server farm...
AWS Webinar: How to architect and deploy a multi tier share point server farm...
 
(PFC304) Effective Interprocess Communications in the Cloud: The Pros and Con...
(PFC304) Effective Interprocess Communications in the Cloud: The Pros and Con...(PFC304) Effective Interprocess Communications in the Cloud: The Pros and Con...
(PFC304) Effective Interprocess Communications in the Cloud: The Pros and Con...
 
AWS Cost Optimisation Made Easy
AWS Cost Optimisation Made EasyAWS Cost Optimisation Made Easy
AWS Cost Optimisation Made Easy
 

Similar to Optimizing Your AWS Applications and Usage to Reduce Costs

AWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCO
AWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCOAWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCO
AWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCO
Amazon Web Services
 

Similar to Optimizing Your AWS Applications and Usage to Reduce Costs (20)

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
 
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
 
AWS Summit Berlin 2013 - Optimizing your AWS applications and usage to reduce...
AWS Summit Berlin 2013 - Optimizing your AWS applications and usage to reduce...AWS Summit Berlin 2013 - Optimizing your AWS applications and usage to reduce...
AWS Summit Berlin 2013 - Optimizing your AWS applications and usage to reduce...
 
AWS Summit 2013 | Auckland - Optimizing Your AWS Applications and Usage to Re...
AWS Summit 2013 | Auckland - Optimizing Your AWS Applications and Usage to Re...AWS Summit 2013 | Auckland - Optimizing Your AWS Applications and Usage to Re...
AWS Summit 2013 | Auckland - Optimizing Your AWS Applications and Usage to Re...
 
Optimizing Your AWS Apps & Usage to Reduce Costs - IP Expo
Optimizing Your AWS Apps & Usage to Reduce Costs - IP ExpoOptimizing Your AWS Apps & Usage to Reduce Costs - IP Expo
Optimizing Your AWS Apps & Usage to Reduce Costs - IP Expo
 
Cost Optimisation on AWS
Cost Optimisation on AWSCost Optimisation on AWS
Cost Optimisation on AWS
 
AWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCO
AWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCOAWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCO
AWS Summit Tel Aviv - Enterprise Track - Cost Optimization & TCO
 
Cost optimization at scale toronto v3
Cost optimization at scale toronto v3Cost optimization at scale toronto v3
Cost optimization at scale toronto v3
 
Running Lean Architectures: How to Optimize for Cost Efficiency
Running Lean Architectures: How to Optimize for Cost Efficiency Running Lean Architectures: How to Optimize for Cost Efficiency
Running Lean Architectures: How to Optimize for Cost Efficiency
 
Cost Optimization on AWS - Pop-up Loft Tel Aviv
Cost Optimization on AWS - Pop-up Loft Tel AvivCost Optimization on AWS - Pop-up Loft Tel Aviv
Cost Optimization on AWS - Pop-up Loft Tel Aviv
 
Cloud Economics
Cloud EconomicsCloud Economics
Cloud Economics
 
Cloudonomics
CloudonomicsCloudonomics
Cloudonomics
 
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...
 
AWS Cloud cost optimization
AWS Cloud cost optimizationAWS Cloud cost optimization
AWS Cloud cost optimization
 
AWS re:Invent 2016: Cost Optimization at Scale (ENT209)
AWS re:Invent 2016: Cost Optimization at Scale (ENT209)AWS re:Invent 2016: Cost Optimization at Scale (ENT209)
AWS re:Invent 2016: Cost Optimization at Scale (ENT209)
 
Achieving Profitability on AWS
Achieving Profitability on AWSAchieving Profitability on AWS
Achieving Profitability on AWS
 
AWS Cloud Kata 2013 | Singapore - Achieving Profitability on AWS
AWS Cloud Kata 2013 | Singapore - Achieving Profitability on AWSAWS Cloud Kata 2013 | Singapore - Achieving Profitability on AWS
AWS Cloud Kata 2013 | Singapore - Achieving Profitability on AWS
 
AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Opti...
AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Opti...AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Opti...
AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Opti...
 
Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS Services Optimizing Costs and Efficiency of AWS Services
Optimizing Costs and Efficiency of AWS Services
 
Cost Optimization Best Practices: Rotem Yosef
Cost Optimization Best Practices: Rotem Yosef Cost Optimization Best Practices: Rotem Yosef
Cost Optimization Best Practices: Rotem Yosef
 

More from 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
 
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
 

More from 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
 

Recently uploaded

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 

Optimizing Your AWS Applications and Usage to Reduce Costs

  • 1. Stephen A. Elliott Optimizing Your AWS Applications and Usage to Reduce Costs Sr. Product Manager, EC2 Jason Stowe CEO, Cycle Computing Guest presenter:
  • 2. Agenda • Objective – Review the spectrum of ways to save money on your AWS application • Tenet: Fit the cloud to your product and business model – Use Only What You Need (and pay only for what you use!) – Measure and Manage – Scale Opportunistically • Customer Case Study – Cycle Computing
  • 3. Use Only What You Need And pay only for what you use!
  • 4. Scale on demand Rigid On-Premise Resources Waste Customer Dissatisfaction Actual demand Predicted Demand Capacity Time Elastic Cloud Resources Actual demand Resources scaled to demand Capacity Time VS.
  • 5. Use only what you need: AWS cost savings opportunities • Right-size your cloud resources – Use resources that suit your needs (instance types, storage options, etc.) – Improve performance: reduce churn, underutilization, bottlenecks – Lower costs: maximize your output per dollar, don’t pay for performance you don’t require • Fit your payment model to your business model – Do you value flexibility or predictability? – Use a portfolio of payment models • Measure and manage your application and cloud resources – Monitor your applications to identify new savings opportunities
  • 6. Right-size your cloud resources: broad EC2 selection • An instance type for every purpose • Assess your memory & CPU requirements – Fit your application to the resource – Fit the resource to your application • Only use a larger instance when needed
  • 7. Optimize your storage choice too: S3 & Glacier • S3 and Glacier are both: – Secure – Flexible – Low-cost – Scalable: over 1.3 trillion customer objects – Durable: 99.999999999% (11 “9”s) Amazon Glacier
  • 8. Choosing between S3 and Glacier • Amazon Simple Storage Service (S3) – Designed to serve static content at high volumes, low latency, frequent access – Low cost: as low as 5.5¢ per GB-month (or 3.7¢ for reduced redundancy) • Amazon Glacier – Designed for long-term cold storage: infrequent access, long retrieval times (3-5 hrs) – Extremely low-cost: 1¢ per GB-month • Tips: – Optimize access: Reduce payload size, # of accesses (e.g., consolidated logs) – Monitor for unexpected access/growth patterns: e.g., misconfigured log archiving – Set Lifecycle Policies: object expiration dates; auto-move S3 files to Glacier Illumina, the leading provider of DNA sequencing instruments, uses Glacier to store large blocks of genomic data all over the world
  • 9. Fit your payment model to your business model: EC2 pricing plans On-Demand Instances Reserved Instances Spot Instances Pay as you go for computing power Flat hourly rate, no up-front commitments Pay an up-front fee for a capacity reservation and a lower hourly rate (up to 72% savings) 1-year or 3-year terms RI Marketplace: sell RIs you no longer need; buy RIs at a discount Pay what you want for spare EC2 capacity: your instances run if your bid exceeds the Spot price Potential for large scale at low cost: When they’re available, take advantage of 1,000s of Spot Instances at up to 90% savings 10:00 10:05 10:10 10:15
  • 10. Use a spectrum of payment models For example: Frontend Applications on On-Demand/Reserved Instances + Backend Applications* on Spot Instances * e.g., batch video transcoding
  • 11. Reserved Instance Marketplace: Buy and Sell Your RIs • Benefits for Buyers: – Same underlying EC2 hardware – Buy RIs at a discount from AWS price – Increased selection of term lengths & prices • Benefits for Sellers: – Moving to a new AWS region – Changing your instance type – Switching operating systems – Selling capacity when project ends
  • 12. Measure and Manage “If you cannot measure it, you cannot improve it.” - Lord Kelvin
  • 13. Overview of AWS Monitoring and Management Services • AWS provides detailed cloud monitoring and management – Consolidated Billing (see “Account Activity” navigation panel) – CloudWatch (see AWS Management Console) – Billing Alerts (see “Account Activity” navigation panel) – Trusted Advisor (see “Support Center”) – Other APIs: tags, programmatic access, etc. • Third-party services are also available
  • 14. Consolidated Billing: Single payer for a group of accounts • One Bill for multiple accounts • Easy Tracking of account charges (e.g., download CSV of cost data) • Group Activities by Paying Account (e.g., Dev, Stage, Test, Prod) • Volume Discounts can be reached faster with combined usage • Reserved Instances are shared across accounts (including RDS Reserved DBs) • AWS Credits are combined to minimize your bill
  • 15. Consolidated Billing Demo (1/3) • Get an overall summary total for all your users and accounts
  • 16. Consolidated Billing Demo (2/3) • From your payment account login, view details of each linked account in one place
  • 17. Consolidated Billing Demo (3/3) • Drill down into detail’s of each account • Download a CSV file for line item details, then analyze via spreadsheet, pivot tables, etc.
  • 18. Amazon CloudWatch • Overview – Monitoring for AWS cloud resources and applications • AWS Resources: EC2, RDS, EBS, ELB, SQS, SNS, DynamoDB, EMR, Auto Scaling, … • Custom metrics from your application (use Put API call) – Gain insight, set alarms and notifications, react immediately – Start using within minutes, auto-scale with your application • Sophisticated Automation – Use CloudWatch metrics with Auto Scaling to dynamically scale EC2 instances
  • 19. Use CloudWatch to monitor & manage resource usage • Monitor your resource utilization – Are you using the right instance type? – Have you left instances idle? – Is your instance usage level or bursty? • Manage your resource utilization – Move bursty workloads to other instances – Rebalance your worker nodes – Scale nodes automatically with Auto Scaling
  • 20. Use CloudWatch to create Billing Alerts • Billing Alerts notify you when estimated charges reach a given threshold • Use Billing Alerts to track an individual developer, or your whole business • Easily set up your billing alarm and actions
  • 21. Trusted Advisor: Enterprise Strength Monitoring/Optimization • Monitors and recommends optimizations for: – Cost – Security – Fault Tolerance – Performance • Available to customers with Business and Enterprise- level support http://aws.amazon.com/premiumsupport/trustedadvisor/
  • 22. Trusted Advisor: Cost Optimization Tips
  • 24. Third-party services to optimize your AWS usage
  • 25. Scale Opportunistically Opportunity favors the prepared application
  • 26. Time-to-Result Case 1: Value of result quickly diminishes Example: Engineering simulation Delay  Loss of productivity, project slips
  • 27. Time-to-Result Case 2: Result is valuable…until it’s not Example: Weekend regression tests Delay  Minimal impact until 8:00AM Monday
  • 28. Consider Spot Instances for greater savings and scale • Spot in a nutshell – Spot instances run when Your Bid ≥ Spot Price – Spot instances = Spare EC2 instances – Spot instances might be interrupted at any time • Benefits – Savings: Up to 90% off On-Demand – Scale: Access up to 1,000s of EC2 instances • To use Spot – Decide on a bid price – Launch via Console, API, Auto Scaling – Monitor Bid Statuses via Console/API
  • 29. What applications work on Spot? • Good Spot applications are: – Delayable: to balance SLA/cost – Scalable: “embarrassingly parallel” – Fault-tolerant: can be terminated without losing all work – Portable across regions, AZs, instance types • Examples: – MapReduce (Hadoop, Amazon EMR) – Scientific Computing (Monte Carlo simulations) – Batch Processing (video transcoding) – Financial Computing (high-frequency trading algorithm backtesting) – and many others… Lucky Oyster crawled 3.4B Web Pages, building a 400M entry index in around 14 hours for $100 (>85% savings)!
  • 30. • Auto Scaling auto-sizes your cluster based on preset triggers and schedules • Integrates with CloudWatch metrics • Use Auto Scaling to – Improve customer experience, application performance – Maximize CPU/IO/Memory utilization – Optimize other metrics Use Auto Scaling to dynamically scale your app Scale with Real-Time Demand
  • 32. Follow the Money vs. Follow the Customer • Optimize utilization – Auto Scale on utilization metrics: CPU, memory, requests, connections, … • Optimize price paid – Scale with Spot instances when Spot prices are low – e.g., Run batch processes off-peak (nights, weekends) when Spot prices are lower
  • 33. Follow the Money vs. Follow the Customer • Optimize customer experience with Auto Scaling • Example 1: Scale resources to meet customer demand – Video service Auto Scales instances to respond to customer web service requests • Example 2: Scale resources to ensure fresh results – A scientific paper search engine Auto Scales on queue depth (# of new docs to crawl) – 10 instances steady state and up to 5,000+ to ensure minimum throughput time • Example 3: Scale resources preemptively before large demand – A TV show marketing site scales up before the show and back down after
  • 34. Cost-Saving Examples • Achieve potentially large savings by profiling your application and paying only for what you need Base Case Savings Examples You run 10 m3.2xlarge’s On-Demand 24x7: 10 instances X $1.00/inst-hours X 24 hours/day X ~30.5 days/month = $7,320/month If you need to run 100% of the time, indefinitely: 10x 3-yr Heavy RIs @ 100% Utilization = $2,731/month (63% savings) If you can layer RIs and On Demand to meet demand: 4x 3-yr Heavy RIs @ 100% Utilization 4x 3-yr Light RIs @ 15% Utilization 2x On-Demand @ 5% Utilization = $1,843/month (75% savings) If you Auto Scale from 2 to 10 instances around primetime TV (6-11pm, Mon-Fri): 2x 3-yr Heavy RIs @ 100% Utilization 8x 3-yr Light RIs @ 15% Utilization = $1,683/month (77% savings) If you can use 40x Spot Instances at 25% up-time: = $840/month (89% savings)
  • 35. Customer Example: 39 Core-Years of Science Cycle Computing’s 10,600-Instance Run Jason A. Stowe CEO @jasonstowe, @cyclecomputing
  • 36. At Cycle, we believe innovation is shackled by a lack of access to compute and data
  • 37. The Scientific Method Ask a Question Hypothesize Predict Experiment / Test Analyze Final Results Test and Analyze stages require the most time, compute, and data
  • 38. The Scientific Method Ask a Question Hypothesize Predict Experiment / Test Analyze Final Results Any improvements to this cycle yield multiplicative benefits
  • 39. If we democratize access to high performance compute, we’ll accelerate breakthroughs
  • 40. Utility HPC in the News WSJ, NYTimes, Wired, Bio-IT World BusinessWeek
  • 41. Computing access is a challenge across many industries All areas of scientific, engineering & financial research need affordable compute • Cycle’s session at AWS Re:Invent – Johnson & Johnson, Novartis, Life Technologies, Pacific Life Insurance, Hartford Insurance Group talking about AWS, Cycle & Utility HPC • Other clients that need affordable infrastructure – 2 of Big 3 Finance – 6 of Big 8 Pharmaceutical – 3 of Big 5 Life Insurance – 2 of Big 3 Next Generation Sequencing – Start-ups to Fortune 100s, corporations to public research institutions
  • 42. Cycle’s software orchestrates High Performance Computing, Spot Instances drive down infrastructure costs How does Spot help us do this? Start-up 12.5 compute-years in 3 hours on 50,000 cores ($20Million) for < $3,000 Big 10 Pharma 154,000 simulations on 30,000 cores in 9 hours for $10,000 Identified 3 new leads in wet lab Research Institute: 1 million hours or 115 compute years, in 1 week for $19,555
  • 43. Cycle’s view of this cluster: Big 10 Pharma Created 10,600 instance cluster ($44M) in 2 hours, running 39 years of compute in 11 hours for $4,372 Most Recent Utility Supercomputer server count: AWS Console view:
  • 44. Utility HPC / BigData Orchestration Software • Scale clusters from 50–50,000 cores • Error-handling, reliability • Data scheduling: internal  cloud • Automated Security, Encryption Framework • Audit, compliance • Reporting, chargeback Automate spot bidding =>
  • 45. Shared FS Scale from 50–50,000+ cores CycleCloud Deploys Secured, Auto-scaled HPC Clusters User Check job load Calculate ideal HPC cluster Legacy Internal HPC Load-based Spot bidding Properly price the bids Manage Spot Instance loss Spot Instance Execute Nodes (auto-started & auto-stopped) FS / S3 HPC Cluster On-Demand Execute Nodes Data Scheduling to place data HPC Orchestration to Handle Spot Instance Bid & Loss
  • 46. THANK YOU! Email: jason.stowe@cyclecomputing.com Twitter: @jasonastowe, @cyclecomputing Blog: blog.cyclecomputing.com
  • 47. Conclusion (Part I): Fit the cloud to your product and business model • Use Only What You Need (and pay only for what you use!) • Measure and Manage • Scale Opportunistically
  • 48. An example putting it all together: Saving on Batch Processing http://aws.amazon.com/architecture/ 3. Scale Opportunistically: Auto Scale worker nodes based on size of input queue1. Pay Only for What You Use: Right- size your cloud resources 2. Monitor and Manage your system with CloudWatch, Billing Alerts, Trusted Advisor
  • 49. Conclusion (Part II): Use the cloud to create new products & business models On-Premises • Failure is expensive • Experiment infrequently • Less Innovation Optimized Cloud • Failure is inexpensive • Experiment early and often • More Innovation
  • 52. Other simple optimization tips • Don’t forget to… – Disassociate unused EIPs – Delete unassociated Amazon EBS volumes – Delete older Amazon EBS snapshots – Leverage Amazon S3 Object Expiration – Defer batch activity (e.g., Hadoop) to periods when your RIs are regularly underutilized (For Enterprise-level support, Trusted Advisor can help with some of these.) • Netflix’s Janitor Monkey automates clean-up – Reduces “unintentional” resource usage – Reduces cost and clutter
  • 53. Other Spot Instance Use Cases • Batch Processing: Generic batch processing (scale out computing) • Hadoop: MapReduce processing (e.g., Search, Big Data) • Scientific Computing: Scientific trials, simulations, analysis • Video/Image Processing: Encoding, transcoding, rendering • Testing: Continuous testing, load testing websites, etc. • Web/Data Crawling: Analyzing data and processing it • Financial: Hedge fund analytics, energy trading, etc. • HPC/HTC: Embarrassingly parallel jobs • Cheap Compute: Backend servers for Facebook games, MineCraft
  • 54. Steady State Example: Corporate Website Spiky Predictable Example: Marketing Promotions Website Uncertain unpredictable Example: Social game or Mobile Website Application Usage Patterns
  • 55. Amazon Elastic MapReduce Hadoop Cluster HDFS Task Node Task Node Core Node Core Node Input Data Output Data Amazon S3 Metadata Amazon SimpleDB BI Apps Upload large datasets or log files directly Data Source Code/ Scripts Amazon S3 Service Amazon Elastic MapReduce HiveQL Pig Latin Cascading Mapper Reducer Runs multiple JobFlow Steps Name Node JDBC/ODBC HiveQL Pig Latin Query Amazon EMR (Hadoop): Run Task Nodes on Spot
  • 56. Paying as you go on AWS lowers your Total Cost of Ownership • By paying only for what you use, you can save on: – Servers – Storage – Network – Environment – Administration • Example: 82% TCO savings for Thomsen Reuters • Learn more: aws.amazon.com/economics
  • 58. Example Architecture 2: Web Application Hosting http://aws.amazon.com/architecture/