Cost Optimization at Scale

64
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Guy Kfir Sr. Account Manager Amazon Web Services May 24, 2016 Cost Optimization at Scale David Costa CTO Fredhopper

Transcript of Cost Optimization at Scale

Page 1: Cost Optimization at Scale

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

Guy Kfir

Sr. Account Manager

Amazon Web Services

May 24, 2016

Cost Optimization at Scale

David Costa

CTO

Fredhopper

Page 2: Cost Optimization at Scale

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: Cost Optimization at Scale

In the beginning . . .

…there was TCO

Page 4: Cost Optimization at Scale

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: Cost Optimization at Scale

So how do we do it?

Page 6: Cost Optimization at Scale

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: Cost Optimization at Scale

Resources to get you started

AWS TCO Calculator

https://awstcocalculator.com

Case studies and research

http://aws.amazon.com/economics/

Page 8: Cost Optimization at Scale

So you’re feeling pretty good.

Page 9: Cost Optimization at Scale

Cost optimization is…

going from…

to…

pay for what you use

pay for what you need

Page 10: Cost Optimization at Scale

Where do you start?

Page 11: Cost Optimization at Scale

The four pillars of cost optimization

Right-sizing Reserved

Instances

Increase

elasticityMeasure,

monitor, and

improve

Page 12: Cost Optimization at Scale

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 13: Cost Optimization at Scale

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 14: Cost Optimization at Scale

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 15: Cost Optimization at Scale

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 16: Cost Optimization at Scale

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 17: Cost Optimization at Scale

Putting it all together: case study

Page 18: Cost Optimization at Scale

Challenge:

Minimizing unit costs

under period of massive

growth.

A consistent measure of

CPU processing power

Elastic compute unit

(ECU)

Page 19: Cost Optimization at Scale

The growth challenge

August 2014

August 2015

584 ECU

1,192 ECU

2x YoY Compute Growth

33% decrease in monthly

EC2 costs!

Page 20: Cost Optimization at Scale

Solving the growth challenge

Page 21: Cost Optimization at Scale

Step 1: Right-size and update instances

m1 on demand

$0.07 per ECU

c4 on demand

$0.02 per ECU

Page 22: Cost Optimization at Scale

The impact of right-sizing

70% reduction

in unit cost

Page 23: Cost Optimization at Scale

Step 2: Reserve

Page 24: Cost Optimization at Scale

The impact of reservations

30% reduction

In unit cost

Page 25: Cost Optimization at Scale

Putting it together

85% reduction

in unit cost!

Page 26: Cost Optimization at Scale

Sounds pretty easy, right?

Not really.

In reality, it is very complex.

Page 27: Cost Optimization at Scale

David Costa

CTO

[email protected]

@davidcosta

Netherlands

May 24, 2016

NBC Congrescentrum

Page 28: Cost Optimization at Scale

What is Fredhopper?

Page 29: Cost Optimization at Scale

The solution of choice for eCommerce Search,

Navigation and Merchandizing in the Enterprise

Page 30: Cost Optimization at Scale

Fredhopper Cloud Services Product

Fredhopper

Cloud

Services

Query API

Data

API

Business

Configuration

API

PIM

Analyti

cs

CRM

REST endpoints

query.published.live1.fas.eu1.fredhopperservices.com/fredhopper/query/bm.prepublished.live1. … .com/fredhopper/config/campaigns/fashion/en_US/list?label_id=<ID>

Page 31: Cost Optimization at Scale

Search Box

Page 32: Cost Optimization at Scale

Instant Search Suggestions

Page 33: Cost Optimization at Scale

Flyout Navigation

Page 34: Cost Optimization at Scale

Facet Navigation

Page 35: Cost Optimization at Scale

Banner

Campaigns

Page 36: Cost Optimization at Scale

Promotions

Page 37: Cost Optimization at Scale

Search Box

Instant Search Suggestions

Facet Navigation

Flyout Navigation

Banner

Campaigns

Promotions

… much more

Page 38: Cost Optimization at Scale

Our vision is to be the “most flexible and agile” SaaS-

solution for managing digital merchandising strategies

& brand experiences on a global scale.

Page 39: Cost Optimization at Scale

How are customers using Fredhopper?

Page 40: Cost Optimization at Scale
Page 41: Cost Optimization at Scale

Adoption and scalability drivers

42

Create, manage and

deliver

engaging cross-channel

product experiences on

a global scale.

Select, rank and serve

the most relevant

content to the right

person at the right time

Provide online the level

of personalized,

dynamic, rich experience

of traditional high-end stores

from International

to Global

from Static Shelf

to Digital Isle

from Transaction

to Experience

Page 42: Cost Optimization at Scale

Large fleet of computing

infrastructure deployed globaly in

production

Page 43: Cost Optimization at Scale

Global

Tokyo

Sydney

Singapore

Frankfurt

Dublin

California

6 Regions

Page 44: Cost Optimization at Scale

Including RI

amortization and

depending on the RIs

coverage

$ 200-250k monthly

Ready to be deployed

in 6 of the AWS

regions around the

globe

4/6 Regions production

Computing resources

steadily growing over

the past 7 years

% Constant growth

Page 45: Cost Optimization at Scale

We use RIs to obtain a significant

Cost reduction

46

Page 46: Cost Optimization at Scale

It provides a framework to build a

cost structure

47

Page 47: Cost Optimization at Scale

EC2 Instances deployed

in production across 4

AWS regions

EC2 Instances deployed

in Development

2125

1950

175

Page 48: Cost Optimization at Scale

20

80,10%

Reserved Instances

85

19,90%

On Demand Instances

10

>90%

Instances Utilization

2015

RIs coverage scheme for production

Page 49: Cost Optimization at Scale

Summing it up

50

Around 2000 instances in production, (>5000 vCPUs)

On demand monthly around $ 300k

With 80% RIs we have a $ 150k EC2 cost per month

Savings of 150k per month and around $1.7M per year on EC2 costs

Page 50: Cost Optimization at Scale

Operational Transparency and

Visibility

Page 51: Cost Optimization at Scale

Realtime dynamic dashboard of OD vs RI utilization

Rules

RI coverage according to scheme

Usage above RI coverage

RI coverage above usage

Usage outside RI coverage

Page 52: Cost Optimization at Scale

Conclusion

Page 53: Cost Optimization at Scale

Takeaways from Fredhopper

Cost structures beside cost savings provides a culture of utilization and cost awareness

It does work! We saved $1.7M last year in EC2 costs

The team is rewarded by those cost reductions: part of the savings funds innovation and green fields.

Page 54: Cost Optimization at Scale

Thank you!

Page 55: Cost Optimization at Scale

Sounds pretty easy, right?

Not really.

In reality, it is very complex.

• Scale

• Behavioral change

• Visibility

• Ownership

Page 56: Cost Optimization at Scale

Cost optimization governance

(Remember the fourth pillar?)

Page 57: Cost Optimization at Scale

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 58: Cost Optimization at Scale

AWS options

Page 59: Cost Optimization at Scale

Reserved Instances and right-sizing options

Page 60: Cost Optimization at Scale

• Vast selection of software solutions optimized for

AWS

• Flexible Pricing: Hourly, Monthly and Annually

• No cost trials

• 1-Click deployment

• Easy provisioning

• One invoice that includes AWS usage and AWS

Marketplace Software

AWS Marketplace

Page 61: Cost Optimization at Scale

Putting it all together

Page 62: Cost Optimization at Scale

Where to start

Set up a Cloud

Competency Center

Bring in the right

tools

Use metrics to

reinforce behavior

Use partners to

accelerate!

Page 63: Cost Optimization at Scale

Cycle of cost optimization

✔✘

$

$

$

$

$

Page 64: Cost Optimization at Scale

Thank You!