Optimize Cost Efficiency on AWS
-
Upload
amazon-web-services -
Category
Technology
-
view
329 -
download
0
Transcript of Optimize Cost Efficiency on AWS
![Page 1: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/1.jpg)
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
May 20, 2016
Optimize Cost Efficiency on AWS
Michael Chen, Technical Trainer, AWS
![Page 2: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/2.jpg)
What to expect….
We will introduce our approach for building
the business case for moving to the cloud
and share tips from some of our most
innovative customers who are able to
successfully architect for cost optimization
in order to realize the economics of the
AWS cloud.
![Page 3: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/3.jpg)
In the beginning . . .
…there was TCO
![Page 4: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/4.jpg)
What is TCO?
Definition: Comparative total cost of ownership analysis (acquisition
and operating costs) for running an infrastructure environment end-to-end
on-premises vs. on AWS.
Used for:
1) Comparing the costs of running an entire infrastructure environment or
specific workload on-premises or in a co-location facility vs. on AWS
2) Budgeting and building the business case for moving to AWS
![Page 5: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/5.jpg)
So how do we do it?
≠
![Page 6: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/6.jpg)
TCO = acquisition costs + operations costs
Hardware—server, rack
chassis PDUs, Tor switches
(+maintenance)
Software—OS,
virtualization licenses
(+maintenance)
Facilities cost
Hardware—storage disks,
SAN/FC switchesStorage admin costs
Network hardware—LAN
switches, load balancer
bandwidth costsNetwork admin costs
Server admin virtualization admin4
The diagram doesn’t include every cost item. For example, software costs can include database,
management, and middle-tier software costs. Facilities cost can include costs associated with upgrades,
maintenance, building security, taxes, and so on. IT labor costs can include security admin and application
admin costs.
Space Power Cooling
Facilities cost
Space Power Cooling
Facilities cost
Space Power Cooling
Server costs
Storage costs
Network costs
IT labor costs
1
2
3
illustrative
![Page 7: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/7.jpg)
Resources to get you started
AWS TCO Calculator
https://awstcocalculator.com
Case studies and research
http://aws.amazon.com/economics/
![Page 8: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/8.jpg)
So you’re feeling pretty good.
![Page 9: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/9.jpg)
Until your CFO shows up with the bill.
![Page 10: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/10.jpg)
Cost optimization is…
going from…
to…
pay for what you use
pay for what you need
![Page 11: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/11.jpg)
Where do you start?
![Page 12: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/12.jpg)
The four pillars of cost optimization
Right-sizing Reserved
Instances
Increase
elasticityMeasure,
monitor, and
improve
![Page 13: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/13.jpg)
Right-sizing
Right-sizing
• Selecting the cheapest instance available
while meeting performance requirements
• Looking at CPU, RAM, storage, and network
utilization to identify potential instances that
can be downsized
• Leveraging Amazon CloudWatch metrics and
setting up custom RAM metrics
Rule of thumb: Right size, then reserve.(But if you’re in a pinch, reserve first.)
![Page 14: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/14.jpg)
Using right-sizing and elasticity to lower cost
More smaller instances vs. fewer larger instances
29 m4.large @ $0.12 /hr
$2,505.60 / mo*
59 t2.medium @ $0.052/hr
$2,208.96 / mo*
*Assumes Linux instances in US-East at 720 hours per month
![Page 15: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/15.jpg)
Reserved Instances
Commitment level1 year
3 year
AWS services offering RIsAmazon EC2
Amazon RDS
Amazon DynamoDB
Amazon Redshift
Amazon ElastiCache
* Dependent on specific AWS service, size/type, and region
![Page 16: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/16.jpg)
Reserved Instances
Step 1: RI Coverage
• Cover always-on resources.
Step 2: RI Utilization
• Leverage RI flexibility to increase utilization.
• Merge and split RIs as needed.
Rule of thumb: Target 70–80% always-on
coverage and 95% RI utilization rate.
![Page 17: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/17.jpg)
Increase elasticity
Turn off nonproduction instances
• Look for dev/test, nonproduction instances that
are running always-on and turn them off.
Autoscale production
• Use Auto Scaling to scale up and down based
on demand and usage (for example, spikes).
Rule of thumb: Shoot for 20–30% of Amazon EC2
instances running on demand to be able to
handle elasticity needs.
![Page 18: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/18.jpg)
“But my applications are
too small
for Auto Scaling!”
![Page 19: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/19.jpg)
Amazon EC2 Container Service (Amazon ECS)
• Easily manage Docker containers
• Flexible container placement
• Designed for use with other AWS services
• Extensible
• Performance at scale
• Secure
![Page 20: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/20.jpg)
10%
15%
7%
12%
20%
9%
Consolidate with Amazon ECS
App 1 App 2
App 3 App 4
App 5 App 6
6
12 345
Amazon ECS
Cluster
![Page 21: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/21.jpg)
Get Rid of Idle Time with AWS Lambda
• Automatic scaling
• Automatic provisioning
• No need to manage infrastructure
• Just bring your code
• $0.20 per million requests, 1M free
• 100 ms payment granularity
• Never pay for idle
Less than 40% utilization?
Consider using AWS Lambda instead!
![Page 22: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/22.jpg)
Putting it all together: case study
![Page 23: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/23.jpg)
Challenge:
Minimizing unit costs
under period of massive
growth.
A consistent measure of
CPU processing power
Elastic compute unit
(ECU)
![Page 24: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/24.jpg)
The growth challenge
August 2014
August 2015
584 ECU
1,192 ECU
2x YoY Compute Growth
33% decrease in monthly
EC2 costs!
![Page 25: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/25.jpg)
Solving the growth challenge
![Page 26: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/26.jpg)
Step 1: Right-size and update instances
m1 on demand
$0.07 per ECU
c4 on demand
$0.02 per ECU
![Page 27: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/27.jpg)
The impact of right-sizing
70% reduction
in unit cost
![Page 28: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/28.jpg)
Step 2: Reserve
![Page 29: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/29.jpg)
The impact of reservations
30% reduction
In unit cost
![Page 30: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/30.jpg)
Putting it together
85% reduction
in unit cost!
![Page 31: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/31.jpg)
Web & Mobile App company
Source: Total Cost of Ownership and the Return on Agility, Werner Vogels
Costs have gone from $54 per hour to $20 per hour
Only 2 weeks of engineering were required to achieve this cost savings
![Page 32: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/32.jpg)
Sounds pretty easy, right?
Not really.
In reality, it is very complex.
• Scale
• Behavioral change
• Visibility
• Ownership
![Page 33: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/33.jpg)
Cost optimization governance
(Remember the fourth pillar?)
![Page 34: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/34.jpg)
Uncovering the cost optimization opportunities
1. Auto-tag resources.
2. Identify always-on nonprod.
3. Identify instances to down-size.
4. Recommend RIs to purchase.
5. Dashboard our status.
6. Report on savings.
![Page 35: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/35.jpg)
AWS options
![Page 36: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/36.jpg)
Reserved Instances and right-sizing options
![Page 37: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/37.jpg)
Example: reasonable optimization dashboard
![Page 38: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/38.jpg)
Creating a culture of cost transparency
Targets and metrics Cloud Competency
Center
AWS Enterprise
Support
![Page 39: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/39.jpg)
Where to start
Set up a Cloud
Competency Center
Bring in the right
tools
Use metrics to
reinforce behavior
Use partners to
accelerate!
![Page 40: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/40.jpg)
Cycle of cost optimization
✔
✔
✔
✔✘
✘
✘
✘
$
$
$
$
$
![Page 41: Optimize Cost Efficiency on AWS](https://reader031.fdocuments.in/reader031/viewer/2022021918/589ffb611a28ab46598b659b/html5/thumbnails/41.jpg)
Thank You!