(ism402) cost optimization at scale

124
© 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Evan Crawford Commercial Optimization - APAC Lead Michael Fuller Principal Systems Engineer - Atlassian October 8, 2015 | Las Vegas, NV Cost Optimization at Scale ISM 402

Upload: amazon-web-services

Post on 15-Apr-2017

3.276 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: (ISM402) Cost Optimization at Scale

© 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Evan Crawford

Commercial Optimization - APAC Lead

Michael Fuller

Principal Systems Engineer - Atlassian

October 8, 2015 | Las Vegas, NV

Cost Optimization at ScaleISM 402

Page 2: (ISM402) Cost Optimization at Scale

What to Expect from the Session

All of our customers…

Only pay for what they use

Page 3: (ISM402) Cost Optimization at Scale

What to Expect from the Session

Some of our customers…

Only pay for what they need

Page 4: (ISM402) Cost Optimization at Scale

What to Expect from the Session

we will share tips from our largest and most

innovative customers who only pay for what

they need.

Your business can save lots with these tips!

Page 5: (ISM402) Cost Optimization at Scale

Example 1

Financial Services Enterprise

Page 6: (ISM402) Cost Optimization at Scale

A Financial Services Enterprise

In twelve months…

Page 7: (ISM402) Cost Optimization at Scale

A Financial Services Enterprise

Increased its

CPU usage

nine-fold

Page 8: (ISM402) Cost Optimization at Scale

A Financial Services Enterprise

Only increased

its spend

four-fold

$260k saving per month!

Page 9: (ISM402) Cost Optimization at Scale

Example 2

Technology Company

Page 10: (ISM402) Cost Optimization at Scale

A Technology Company

In the last three

months…

Page 11: (ISM402) Cost Optimization at Scale

A Technology Company

Doubled the CPU

and traffic used by

its Web servers

Page 12: (ISM402) Cost Optimization at Scale

A Technology Company

Reduced its

instance spend

by 33%

$72k saving per month!

Page 13: (ISM402) Cost Optimization at Scale

What levers did they pull?

Page 14: (ISM402) Cost Optimization at Scale

Commercial Optimization Levers

Elasticity Step 1

Turn off Non

Production

Step 2

Auto Scale

Production

Page 15: (ISM402) Cost Optimization at Scale

Commercial Optimization Levers

Right-Sizing Step 1

Use the Cheapest

Available Instance

Page 16: (ISM402) Cost Optimization at Scale

Commercial Optimization Levers

Reserved Capacity Step 1

Cover always on

resources.

Target = 70%

always on covered

Step 2

Leverage RI

flexibility to

increase utilization

Target = 95% RI

Utilization

Page 17: (ISM402) Cost Optimization at Scale

Example 1

Financial Services Enterprise

Page 18: (ISM402) Cost Optimization at Scale

Elastic Compute Unit (ECU)

A consistent measure of CPU

processing power

Page 19: (ISM402) Cost Optimization at Scale

Financial Services Enterprise

What Apr ‘14 Apr ‘15 Δ

Peak Compute

Usage

1,601k

ECU

13,957k

ECU+772%

Instance Costs $59k pm $244k pm +313%

$270k

saving

per

month!

Page 20: (ISM402) Cost Optimization at Scale

Financial Services Enterprise

Unit Cost:

Elastic Compute Unit

Per Hour

60% Reduction

in Unit Cost

Page 21: (ISM402) Cost Optimization at Scale

Financial Services Enterprise

Apr 1 2014 Apr 30 2014

Consistent 1,000 to

1,100 ECUs provisioned

Page 22: (ISM402) Cost Optimization at Scale

Financial Services Enterprise

Apr 1 2015 Apr 30 2015

Page 23: (ISM402) Cost Optimization at Scale

Financial Services Enterprise

40% Reduction

in Unit Cost

Page 24: (ISM402) Cost Optimization at Scale

Financial Services Enterprise

30% Reduction

in Unit Cost

Page 25: (ISM402) Cost Optimization at Scale

Financial Services Enterprise

Page 26: (ISM402) Cost Optimization at Scale

Financial Services Enterprise

Page 27: (ISM402) Cost Optimization at Scale

Example 2

Technology Company

Page 28: (ISM402) Cost Optimization at Scale

Technology Company

What June Aug Δ

Data Out (TB) 36 95+163%

Compute584k

ECU

1,192k

ECU+104%

Instance Costs $36k pm $24k pm -33%

$72k

saving

per

month!

Page 29: (ISM402) Cost Optimization at Scale

Technology Company

Cost:

Elastic Compute Unit

Per Hour

70% Reduction

in Unit Cost

Page 30: (ISM402) Cost Optimization at Scale

Technology Company

C4 On Demand

= $0.02 / ECU

m1 On Demand

= $0.07 / ECU

Page 31: (ISM402) Cost Optimization at Scale

Technology Company

Page 32: (ISM402) Cost Optimization at Scale

Technology Company

60% Reduction

in Unit Cost

Page 33: (ISM402) Cost Optimization at Scale

Technology Company

30% Reduction

in Unit Cost

Page 34: (ISM402) Cost Optimization at Scale

Technology Company

Page 35: (ISM402) Cost Optimization at Scale

How to use those levers

at scale?

Page 36: (ISM402) Cost Optimization at Scale

Automation

Page 37: (ISM402) Cost Optimization at Scale

Understand Opportunities

Automation

What we need to do

1. Auto-tag resources

2. Identify ‘always on’ Non Prod

3. Identify instances to down-size

4. Recommend RIs to purchase

5. Dashboard our status

6. Report on savings

Page 38: (ISM402) Cost Optimization at Scale

Action Changes

1. Allocate costs by tag &

account

2. Turn off Non-Prod instances

daily

3. Quickly change instance

sizes

4. Move underutilized RIs

Automation

What we need to do

Page 39: (ISM402) Cost Optimization at Scale

How to set up Automated Tools

Page 40: (ISM402) Cost Optimization at Scale

Dashboards

https://github.com/evancraw/AWSOptimizationTemplates

Page 41: (ISM402) Cost Optimization at Scale

A Reasonably Optimized Dashboard

Page 42: (ISM402) Cost Optimization at Scale

A Dashboard ripe with opportunity

Page 43: (ISM402) Cost Optimization at Scale

Reserved Instances and Right-Sizing

Build Your Own

Page 44: (ISM402) Cost Optimization at Scale

Reserved Capacity Recommendations

Page 45: (ISM402) Cost Optimization at Scale

Right-Sizing Recommendations

https://github.com/evancraw/AWSOptimizationTemplates

Page 46: (ISM402) Cost Optimization at Scale

From

Automatic Tagging

To

Page 47: (ISM402) Cost Optimization at Scale

Automatic Tagging

http://ape.gs/AWSAutoTag

Page 48: (ISM402) Cost Optimization at Scale

Tagging Governance with AWS Config

Page 49: (ISM402) Cost Optimization at Scale

Right-size with cloud native provisioning

AWS CloudFormation

AWS OpsWorks

Page 50: (ISM402) Cost Optimization at Scale

Handy Tools

Move RIs automatically

https://github.com/jros2300/reservedinstances

Tableau Templates

https://github.com/evancraw/AWSOptimizationTemplates(Dashboards, right-sizing, reserved capacity)

Start / Stop Non-Prod Daily

ape.gs/PowerCycleReInvent

Page 51: (ISM402) Cost Optimization at Scale

$

$

$

$

$

$

$

$

Something missing?

Unit

Cost

Page 52: (ISM402) Cost Optimization at Scale

Why will those levers be used?

Page 53: (ISM402) Cost Optimization at Scale

A Lean Culture

Page 54: (ISM402) Cost Optimization at Scale

What Lean Culture Looks Like

Users: • Understand

• Take responsibility for

• Act to lower

The costs of their usage

as a normal part of their day

Page 55: (ISM402) Cost Optimization at Scale

Build a Lean Culture

Targets and Metrics Cloud Competency

Center

AWS Enterprise

Support

Page 56: (ISM402) Cost Optimization at Scale

A Cycle of Cost Optimization

✔✘

$

$

$

$

$

Page 57: (ISM402) Cost Optimization at Scale

Metrics

1. % Instances turned off daily

2. % Instances right-sized

3. % Always On Resources Covered by RI

4. % RI Utilization

All weighted by ECU

Page 58: (ISM402) Cost Optimization at Scale

What Works

Think Big

Start Small

Learn Fast

Trust and Verify

Lean Culture

Watch out for

Wait until you get Big

Analysis Paralysis

Try to do it all at once

Constrain innovation by

making teams wait

Page 59: (ISM402) Cost Optimization at Scale
Page 60: (ISM402) Cost Optimization at Scale

How do we explain the costs?

How do we allocate the charges to the right team?

How do we save money?

Whose responsibility is it to save money?

Page 61: (ISM402) Cost Optimization at Scale

2 Years Ago

Page 62: (ISM402) Cost Optimization at Scale
Page 63: (ISM402) Cost Optimization at Scale
Page 64: (ISM402) Cost Optimization at Scale
Page 65: (ISM402) Cost Optimization at Scale
Page 66: (ISM402) Cost Optimization at Scale
Page 67: (ISM402) Cost Optimization at Scale
Page 68: (ISM402) Cost Optimization at Scale

How do we explain the costs?

How do we allocate the charges to the right team?

How do we save money?

Whose responsibility is it to save money?

Page 69: (ISM402) Cost Optimization at Scale

Cloud Engineering Team

Page 70: (ISM402) Cost Optimization at Scale

1UP

Page 71: (ISM402) Cost Optimization at Scale

Finance

Team

Track Down AWS Accounts

Page 72: (ISM402) Cost Optimization at Scale

Consolidated Billing

Page 73: (ISM402) Cost Optimization at Scale

Account A

Account B

Account C

Total

$$

$$$$

$$$

$$$$$$$

Single Monthly Invoice

Page 74: (ISM402) Cost Optimization at Scale

Centralize AWS Account Creation

Page 75: (ISM402) Cost Optimization at Scale

What is in the Accounts?

Page 76: (ISM402) Cost Optimization at Scale

TAGS

Page 77: (ISM402) Cost Optimization at Scale

Create a Tagging Policy

Page 78: (ISM402) Cost Optimization at Scale

CSV

JSON

Page 79: (ISM402) Cost Optimization at Scale

?

Our Tags

Page 80: (ISM402) Cost Optimization at Scale

Cost Center

Page 81: (ISM402) Cost Optimization at Scale

Responsible

Owner

Page 82: (ISM402) Cost Optimization at Scale

Service

Page 83: (ISM402) Cost Optimization at Scale

Name

Page 84: (ISM402) Cost Optimization at Scale

Number of Tags vs Enough Information

Page 85: (ISM402) Cost Optimization at Scale

Report on Tagging Progress

Page 86: (ISM402) Cost Optimization at Scale

Tag at Resource Creation

Page 87: (ISM402) Cost Optimization at Scale

Automate Tagging

Page 88: (ISM402) Cost Optimization at Scale

Build Reports from the Tags

Page 89: (ISM402) Cost Optimization at Scale

How do we Allocate the Charges to the Right Team?

Page 90: (ISM402) Cost Optimization at Scale

Untagged Costs

Page 91: (ISM402) Cost Optimization at Scale

How do we explain the costs?

How do we allocate the charges to the right team?

Page 92: (ISM402) Cost Optimization at Scale

How do we save money?

Whose responsibility is it to save money?

Page 93: (ISM402) Cost Optimization at Scale

Reserved Instances

Page 94: (ISM402) Cost Optimization at Scale

Reserved Instances without Statistics

Page 95: (ISM402) Cost Optimization at Scale

Statistics on Usage and Costs

Page 96: (ISM402) Cost Optimization at Scale

Statistics on Usage and Costs

Page 97: (ISM402) Cost Optimization at Scale

EC2 Usage by Hour

Page 98: (ISM402) Cost Optimization at Scale

Always-On Load

Page 99: (ISM402) Cost Optimization at Scale

Elastic Load

Page 100: (ISM402) Cost Optimization at Scale

Convert Always-On into Elastic Load

Page 101: (ISM402) Cost Optimization at Scale

Convert Always on to Elastic

EC2 Instance (M4.Large) Running Cost Savings

4 Weeks On Demand 24/7 $85 $0

Page 102: (ISM402) Cost Optimization at Scale

Convert Always on to Elastic

EC2 Instance (M4.Large) Running Cost Savings

4 Weeks On Demand 24/7 $85 $0

4 Weeks Reserved Instance 24/7 $50 $35

Page 103: (ISM402) Cost Optimization at Scale

Convert Always on to Elastic

EC2 Instance (M4.Large) Running Cost Savings

4 Weeks On Demand 24/7 $85 $0

4 Weeks Reserved Instance 24/7 $50 $35

4 Weeks On Demand Mon-Fri 10hrs/day $25 $60

Page 104: (ISM402) Cost Optimization at Scale

Scheduled Run

Times

Page 105: (ISM402) Cost Optimization at Scale

Scheduled Run Times

Page 106: (ISM402) Cost Optimization at Scale

Scheduled Run

Times

(Batch Jobs)

Page 107: (ISM402) Cost Optimization at Scale

Autoscaling

Page 108: (ISM402) Cost Optimization at Scale

Rightsizing

Page 109: (ISM402) Cost Optimization at Scale

Reserved Instances

Page 110: (ISM402) Cost Optimization at Scale

Reserved Instances

Page 111: (ISM402) Cost Optimization at Scale

Reserved Instances

Page 112: (ISM402) Cost Optimization at Scale

Results

Page 113: (ISM402) Cost Optimization at Scale

How do we Explain the Costs?

Tags Reports

Page 114: (ISM402) Cost Optimization at Scale

How do we Allocate the Charges to the Right Team?

Reports

$

$

$

Page 115: (ISM402) Cost Optimization at Scale

How do we Save Money?

Volume

Discounts

Reserved

Instances

Elastic

Load

Rightsizing

Page 116: (ISM402) Cost Optimization at Scale

Whose Responsibility is it to Save Money?

$

Page 117: (ISM402) Cost Optimization at Scale

Whose Responsibility is it to Save Money?

$

Page 118: (ISM402) Cost Optimization at Scale

Thank you!

Page 119: (ISM402) Cost Optimization at Scale

What to do next

Page 120: (ISM402) Cost Optimization at Scale

Next Steps

Set up a Cloud

Competency Center

Bring in the right

tools

Use metrics to

reinforce behavior

Use partners to

accelerate!

Page 121: (ISM402) Cost Optimization at Scale

Remember

There is a lot of money to save

Page 122: (ISM402) Cost Optimization at Scale

Thank you!

Page 123: (ISM402) Cost Optimization at Scale

Remember to complete

your evaluations!

Page 124: (ISM402) Cost Optimization at Scale

Related Sessions

ISM206 - Modern IT Governance Through Transparency

and Automation

ISM207 - The Lean Enterprise: How the Principles of

Lean Are Transforming Corporate Innovation

ISM208 - The Science of Saving with AWS RIs

ARC307 - Infrastructure as Code