aws webcast - journey through the cloud - cost optimization

101
Journey through the Cloud: Cost optimization Jan Borch – Solutions Architect

Upload: amazon-web-services

Post on 08-May-2015

1.072 views

Category:

Technology


1 download

DESCRIPTION

From turning systems off at night to implementing bidding strategies on the spot market, there are many ways in which you can manage costs in AWS. This presentation outlines strategies to help you save money in the AWS Cloud.

TRANSCRIPT

Page 1: AWS Webcast - Journey through the Cloud - Cost Optimization

Journey through the Cloud:

Cost optimization

Jan Borch – Solutions Architect

Page 2: AWS Webcast - Journey through the Cloud - Cost Optimization

Common use cases & stepping stones into the AWS cloud Learning from customer journeys

Best practices to bootstrap your projects

Journey through the cloud

Page 3: AWS Webcast - Journey through the Cloud - Cost Optimization

A key step in the cloud journey Realize cost aware architectures

Use elasticity to real and measurable benefit Do more, use less

Cost Optimization

Page 4: AWS Webcast - Journey through the Cloud - Cost Optimization

Fundamentals of AWS cost optimization Cost optimization in 5 steps Where to go next

Agenda

Page 5: AWS Webcast - Journey through the Cloud - Cost Optimization

Fundamentals of cost optimization

Page 6: AWS Webcast - Journey through the Cloud - Cost Optimization

Why optimize?

Page 7: AWS Webcast - Journey through the Cloud - Cost Optimization

Why optimize?

Utility Compute and Storage are a utility so ‘turning off’ should be natural

Page 8: AWS Webcast - Journey through the Cloud - Cost Optimization

Why optimize?

Utility Compute and Storage are a utility so ‘turning off’ should be natural

Efficiency Efficiency allows more to be done

within a given budget

Page 9: AWS Webcast - Journey through the Cloud - Cost Optimization

Why optimize?

Utility Compute and Storage are a utility so ‘turning off’ should be natural

Efficiency Efficiency allows more to be done

within a given budget

Architecture Cost awareness drives

adoption of 21st century architectures

Page 10: AWS Webcast - Journey through the Cloud - Cost Optimization

Turn off the lights

When you stop EC2 resources you stop paying for them

Page 11: AWS Webcast - Journey through the Cloud - Cost Optimization

Be elastic

Support workloads with the right amount of horsepower to get the job

done

Page 12: AWS Webcast - Journey through the Cloud - Cost Optimization

Continually optimize

Drive recurring and improving savings through cost aware architectures

Page 13: AWS Webcast - Journey through the Cloud - Cost Optimization

Elastic capacity Instance types Reserved instances Spot instances Complementary services

5 Steps for cost optimization

Page 14: AWS Webcast - Journey through the Cloud - Cost Optimization

Elastic capacity Instance types Reserved instances Spot instances Complementary services

5 Steps for cost optimization

Page 15: AWS Webcast - Journey through the Cloud - Cost Optimization

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

Serv

er

Load

Hour of day

Page 16: AWS Webcast - Journey through the Cloud - Cost Optimization

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

Serv

er

Load

Hour of day

Capacity of 1 Server

Page 17: AWS Webcast - Journey through the Cloud - Cost Optimization

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

Serv

er

Load

Hour of day

Capacity of 1 Server

Traditional capacity required

Page 18: AWS Webcast - Journey through the Cloud - Cost Optimization

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

Serv

er

Load

Hour of day

Capacity of 1 Server

Traditional capacity required

1 Server for 8 hours

Page 19: AWS Webcast - Journey through the Cloud - Cost Optimization

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

Serv

er

Load

Hour of day

Capacity of 1 Server

Traditional capacity required

1 Server for 8 hours 1 Server for 8 hours

Page 20: AWS Webcast - Journey through the Cloud - Cost Optimization

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

Serv

er

Load

Hour of day

Capacity of 1 Server

Traditional capacity required

1 Server for 8 hours 1 Server for 8 hours

1 Server for 8 hours

Page 21: AWS Webcast - Journey through the Cloud - Cost Optimization

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

Serv

er

Load

Hour of day

Capacity of 1 Server

Traditional capacity required

1 Server for 8 hours 1 Server for 8 hours

1 Server for 8 hours

1 Server for 8 hours

Page 22: AWS Webcast - Journey through the Cloud - Cost Optimization

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

Serv

er

Load

Hour of day

Capacity of 1 Server

Traditional capacity required

1/3rd Saving

Page 23: AWS Webcast - Journey through the Cloud - Cost Optimization

2 am

Elastic Capacity

Page 24: AWS Webcast - Journey through the Cloud - Cost Optimization

8 am

Elastic Capacity

Page 25: AWS Webcast - Journey through the Cloud - Cost Optimization

12 am

Elastic Capacity

Page 26: AWS Webcast - Journey through the Cloud - Cost Optimization

4 pm

Elastic Capacity

Page 27: AWS Webcast - Journey through the Cloud - Cost Optimization

10 pm

Elastic Capacity

Page 28: AWS Webcast - Journey through the Cloud - Cost Optimization

Time: +00h

<10 cores

Elastic Capacity

Page 29: AWS Webcast - Journey through the Cloud - Cost Optimization

Time: +24h

>1500 cores

Elastic Capacity

Page 30: AWS Webcast - Journey through the Cloud - Cost Optimization

Time: +72h

<10 cores

Elastic Capacity

Page 31: AWS Webcast - Journey through the Cloud - Cost Optimization

Time: +120h

>600 cores

Elastic Capacity

Page 32: AWS Webcast - Journey through the Cloud - Cost Optimization

Manually

Send an API call or use CLI to launch/terminate instances – Only need to specify capacity

change (+/-)

By Schedule

Scale up/down based on date and time

By Policy

Scale in response to changing conditions, based on user

configured real-time monitoring and alerts

Auto-Rebalance

Instances are automatically launched/terminated to ensure the application is

balanced across multiple Azs

Auto-scaling policies

Page 33: AWS Webcast - Journey through the Cloud - Cost Optimization

Auto-scaling policies

Scaling base on Policy

Scale up and down base on metrics

Scaling Up policy - Double the group size if avg cpu > 80%

Scaling Down policy - Decrement by 10% if avg cpu < 30%

Scaling by Schedule

Scheduled Actions to meet known demand

Scheduled up to 31 days into the future

Recurring scheduled scaling activities

Page 34: AWS Webcast - Journey through the Cloud - Cost Optimization

0

1

2

3

4

5

6

0 1 2 3 4 5 6 7 8 9 101112131415161718192021222324252627282930

Inst

ance

Co

un

t

Day of Month

Page 35: AWS Webcast - Journey through the Cloud - Cost Optimization

0

1

2

3

4

5

6

0 1 2 3 4 5 6 7 8 9 101112131415161718192021222324252627282930

Inst

ance

Co

un

t

Day of Month

Monthly predictable

peak processing

Page 36: AWS Webcast - Journey through the Cloud - Cost Optimization

0

1

2

3

4

5

6

0 1 2 3 4 5 6 7 8 9 101112131415161718192021222324252627282930

Inst

ance

Co

un

t

Day of Month

Traditional capacity required

Page 37: AWS Webcast - Journey through the Cloud - Cost Optimization

0

1

2

3

4

5

6

0 1 2 3 4 5 6 7 8 9 101112131415161718192021222324252627282930

Inst

ance

Co

un

t

Day of Month

Elastic Capacity

Traditional capacity required

Page 38: AWS Webcast - Journey through the Cloud - Cost Optimization

0

1

2

3

4

5

6

0 1 2 3 4 5 6 7 8 9 101112131415161718192021222324252627282930

Inst

ance

Co

un

t

Day of Month

75 % Savings

Traditional capacity required

Elastic Capacity

Page 39: AWS Webcast - Journey through the Cloud - Cost Optimization

Elastic capacity Instance types Reserved instances Spot instances Complementary services

5 Steps for cost optimization

Page 40: AWS Webcast - Journey through the Cloud - Cost Optimization

Elastic capacity Instance types Reserved instances Spot instances Complementary services

5 Steps for cost optimization

Page 41: AWS Webcast - Journey through the Cloud - Cost Optimization

Instance types

Page 42: AWS Webcast - Journey through the Cloud - Cost Optimization

Start

Choose instance that meets your basic

requirements best

Match memory & virtual cores

Instance types

Page 43: AWS Webcast - Journey through the Cloud - Cost Optimization

Start

Choose instance that meets your basic

requirements best

Match memory & virtual cores

Tune

Change instance size up or down based upon

monitoring

Use trusted advisor to assess

Instance types

Page 44: AWS Webcast - Journey through the Cloud - Cost Optimization

Start

Choose instance that meets your basic

requirements best

Match memory & virtual cores

Tune

Change instance size up or down based upon

monitoring

Use trusted advisor to assess

Spread

Run instances across multiple availability

zones

Smaller sizes equals greater granularity

Instance types

Page 45: AWS Webcast - Journey through the Cloud - Cost Optimization

Instance Amazon

CloudWatch Alarm

Free Memory

Free CPU Free HDD

… Custom Metrics

… At 1-min intervals

PUT 2 weeks

Know your usage

Page 46: AWS Webcast - Journey through the Cloud - Cost Optimization

Choose your metric optimize for the metric

Page 47: AWS Webcast - Journey through the Cloud - Cost Optimization

Choose your metric optimize for the metric

Cost per unit of work per instance(size)

Workload A

Optimal on 4x m1.xlarge

Workload B

Optimal on 10x m1.medium

Workload C

Optimal on 2x m3.xxlarge

Page 48: AWS Webcast - Journey through the Cloud - Cost Optimization

Choose your metric optimize for the metric

Cost per unit of work per instance(size)

100 concurrent jobs on 10 x m1.large @ $0.26 / hr = $ 0.026 / job

300 concurrent jobs on 10 x m3.xlarge @ $0.58 / hr = $ 0.019 / job

vs

Page 49: AWS Webcast - Journey through the Cloud - Cost Optimization

Choose your metric optimize for the metric

Think workload density Don’t focus on instance hourly rate per se

Page 50: AWS Webcast - Journey through the Cloud - Cost Optimization

Master Account

[email protected]

Page 51: AWS Webcast - Journey through the Cloud - Cost Optimization

Division B [email protected]

User2 Dev2 Admin2

IAM

Master Account

[email protected]

consolidated billing information

Page 52: AWS Webcast - Journey through the Cloud - Cost Optimization

Division B [email protected]

User2 Dev2 Admin2

IAM

Tags: Own=Div Proj=P

Tags: Own=Div Proj=Q

Tags: Own=Div Proj=R

Master Account

[email protected]

consolidated billing information Tags: (key-value)

e.g Own=Div Proj=R

Page 53: AWS Webcast - Journey through the Cloud - Cost Optimization

Operating Co. A [email protected]

User1 Dev1 Admin1

IAM

Tags: Own=OpCo Proj=A

Tags: Own=OpCo Proj=B

Tags: Own=OpCo Proj=C

Division B [email protected]

User2 Dev2 Admin2

IAM

Tags: Own=Div Proj=P

Tags: Own=Div Proj=Q

Tags: Own=Div Proj=R

Business Unit C [email protected]

User3 Dev3 Admin3

IAM

Tags: Own=BusC Proj=X

Tags: Own=BusC Proj=Y

Tags: Own=BusC Proj=Z

Master Account

[email protected]

consolidated billing information

Page 54: AWS Webcast - Journey through the Cloud - Cost Optimization

Operating Co. A [email protected]

User1 Dev1 Admin1

IAM

Tags: Own=OpCo Proj=A

Tags: Own=OpCo Proj=B

Tags: Own=OpCo Proj=C

Division B [email protected]

User2 Dev2 Admin2

IAM

Tags: Own=Div Proj=P

Tags: Own=Div Proj=Q

Tags: Own=Div Proj=R

Business Unit C [email protected]

User3 Dev3 Admin3

IAM

Tags: Own=BusC Proj=X

Tags: Own=BusC Proj=Y

Tags: Own=BusC Proj=Z

Master Account

[email protected]

consolidated billing information

Page 55: AWS Webcast - Journey through the Cloud - Cost Optimization

Operating Co. A [email protected]

User1 Dev1 Admin1

IAM

Tags: Own=OpCo Proj=A

Tags: Own=OpCo Proj=B

Tags: Own=OpCo Proj=C

Division B [email protected]

User2 Dev2 Admin2

IAM

Tags: Own=Div Proj=P

Tags: Own=Div Proj=Q

Tags: Own=Div Proj=R

Business Unit C [email protected]

User3 Dev3 Admin3

IAM

Tags: Own=BusC Proj=X

Tags: Own=BusC Proj=Y

Tags: Own=BusC Proj=Z

Master Account

[email protected]

consolidated billing information

Programmatic billing access

S3 CSV

Page 56: AWS Webcast - Journey through the Cloud - Cost Optimization

Operating Co. A [email protected]

User1 Dev1 Admin1

IAM

Tags: Own=OpCo Proj=A

Tags: Own=OpCo Proj=B

Tags: Own=OpCo Proj=C

Division B [email protected]

User2 Dev2 Admin2

IAM

Tags: Own=Div Proj=P

Tags: Own=Div Proj=Q

Tags: Own=Div Proj=R

Business Unit C [email protected]

User3 Dev3 Admin3

IAM

Tags: Own=BusC Proj=X

Tags: Own=BusC Proj=Y

Tags: Own=BusC Proj=Z

Master Account

[email protected]

consolidated billing information

Programmatic billing access

S3 CSV

Page 57: AWS Webcast - Journey through the Cloud - Cost Optimization

Business

Basic

Developer

Enterprise

Offering

24x7x365 ✓

Forum Access ✓

Documentation ✓

Access to support Phone, Chat,

Email

Named Contacts 5

Fastest Response Time 1 Hour

Architecture Support Use Case

Guidance

Best Practice ✓

Diagnostics Tools ✓

Direct Routing ✓

3rd Party Software ✓

Trusted Advisor ✓

Page 58: AWS Webcast - Journey through the Cloud - Cost Optimization
Page 59: AWS Webcast - Journey through the Cloud - Cost Optimization
Page 60: AWS Webcast - Journey through the Cloud - Cost Optimization

Elastic capacity Instance types Reserved instances Spot instances Complementary services

5 Steps for cost optimization

Page 61: AWS Webcast - Journey through the Cloud - Cost Optimization

Elastic capacity Instance types Reserved instances Spot instances Complementary services

5 Steps for cost optimization

Page 62: AWS Webcast - Journey through the Cloud - Cost Optimization

Unix/Linux instances start at $0.02/hour

Pay as you go for compute power

Low cost and flexibility

Pay only for what you use, no up-front commitments or long-term contracts

Use Cases:

Applications with short term, spiky, or

unpredictable workloads;

Application development or testing

On-demand instances

Reserved instances

Page 63: AWS Webcast - Journey through the Cloud - Cost Optimization

Unix/Linux instances start at $0.02/hour

Pay as you go for compute power

Low cost and flexibility

Pay only for what you use, no up-front commitments or long-term contracts

Use Cases:

Applications with short term, spiky, or

unpredictable workloads;

Application development or testing

On-demand instances

1- or 3-year terms

Pay low up-front fee, receive significant hourly discount

Low Cost / Predictability

Helps ensure compute capacity is available

when needed

Use Cases:

Applications with steady state or predictable usage

Applications that require reserved capacity,

including disaster recovery

Reserved instances

Reserved instances

Page 64: AWS Webcast - Journey through the Cloud - Cost Optimization

Unix/Linux instances start at $0.02/hour

Pay as you go for compute power

Low cost and flexibility

Pay only for what you use, no up-front commitments or long-term contracts

Use Cases:

Applications with short term, spiky, or

unpredictable workloads;

Application development or testing

On-demand instances

1- or 3-year terms

Pay low up-front fee, receive significant hourly discount

Low Cost / Predictability

Helps ensure compute capacity is available

when needed

Use Cases:

Applications with steady state or predictable usage

Applications that require reserved capacity,

including disaster recovery

Reserved instances

Reserved instances

> 80% utilization Lower costs up to 58%

Use Cases: Databases, Large Scale HPC, Always-on infrastructure, Baseline

Heavy utilization RI

Page 65: AWS Webcast - Journey through the Cloud - Cost Optimization

Unix/Linux instances start at $0.02/hour

Pay as you go for compute power

Low cost and flexibility

Pay only for what you use, no up-front commitments or long-term contracts

Use Cases:

Applications with short term, spiky, or

unpredictable workloads;

Application development or testing

On-demand instances

1- or 3-year terms

Pay low up-front fee, receive significant hourly discount

Low Cost / Predictability

Helps ensure compute capacity is available

when needed

Use Cases:

Applications with steady state or predictable usage

Applications that require reserved capacity,

including disaster recovery

Reserved instances

Reserved instances

> 80% utilization Lower costs up to 58%

Use Cases: Databases, Large Scale HPC, Always-on infrastructure, Baseline

Heavy utilization RI

41-79% utilization Lower costs up to 49%

Use Cases: Web applications, many heavy processing tasks, running much of the time

Medium utilization RI

Page 66: AWS Webcast - Journey through the Cloud - Cost Optimization

Unix/Linux instances start at $0.02/hour

Pay as you go for compute power

Low cost and flexibility

Pay only for what you use, no up-front commitments or long-term contracts

Use Cases:

Applications with short term, spiky, or

unpredictable workloads;

Application development or testing

On-demand instances

1- or 3-year terms

Pay low up-front fee, receive significant hourly discount

Low Cost / Predictability

Helps ensure compute capacity is available

when needed

Use Cases:

Applications with steady state or predictable usage

Applications that require reserved capacity,

including disaster recovery

Reserved instances

Reserved instances

> 80% utilization Lower costs up to 58%

Use Cases: Databases, Large Scale HPC, Always-on infrastructure, Baseline

Heavy utilization RI

41-79% utilization Lower costs up to 49%

Use Cases: Web applications, many heavy processing tasks, running much of the time

Medium utilization RI

15-40% utilization Lower costs up to 34%

Use Cases: Disaster Recovery, Weekly / Monthly reporting, Elastic Map Reduce

Light utilization RI

Page 67: AWS Webcast - Journey through the Cloud - Cost Optimization

Best RI for Utilisation

$-

$2,000

$4,000

$6,000

$8,000

$10,000

$12,000

$14,000

$16,000

$18,000

Heavy

Medium

Light

O-Demand

Page 68: AWS Webcast - Journey through the Cloud - Cost Optimization

Best RI for Utilisation

$-

$2,000

$4,000

$6,000

$8,000

$10,000

$12,000

$14,000

$16,000

$18,000

Heavy

Medium

Light

O-Demand

Page 69: AWS Webcast - Journey through the Cloud - Cost Optimization

0

2

4

6

8

10

12

14

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

On Demand

Light Utilization RI

Medium Utilization RI

Heavy utilization RI

Optimizing costs with RIs

Page 70: AWS Webcast - Journey through the Cloud - Cost Optimization

Elastic capacity Instance types Reserved instances Spot instances Complementary services

5 Steps for cost optimization

Page 71: AWS Webcast - Journey through the Cloud - Cost Optimization

Elastic capacity Instance types Reserved instances Spot instances Complementary services

5 Steps for cost optimization

Page 72: AWS Webcast - Journey through the Cloud - Cost Optimization

Unix/Linux instances start at $0.02/hour

Pay as you go for compute power

Low cost and flexibility

Pay only for what you use, no up-front commitments or long-term contracts

Use Cases:

Applications with short term, spiky, or

unpredictable workloads;

Application development or testing

On-demand instances

1- or 3-year terms

Pay low up-front fee, receive significant hourly discount

Low Cost / Predictability

Helps ensure compute capacity is available

when needed

Use Cases:

Applications with steady state or predictable usage

Applications that require reserved capacity,

including disaster recovery

Reserved instances

Spot instances

Page 73: AWS Webcast - Journey through the Cloud - Cost Optimization

Unix/Linux instances start at $0.02/hour

Pay as you go for compute power

Low cost and flexibility

Pay only for what you use, no up-front commitments or long-term contracts

Use Cases:

Applications with short term, spiky, or

unpredictable workloads;

Application development or testing

On-demand instances

1- or 3-year terms

Pay low up-front fee, receive significant hourly discount

Low Cost / Predictability

Helps ensure compute capacity is available

when needed

Use Cases:

Applications with steady state or predictable usage

Applications that require reserved capacity,

including disaster recovery

Reserved instances

Bid on unused EC2 capacity

Spot Price based on supply/demand, determined automatically

Cost / Large Scale, dynamic workload handling

Use Cases:

Applications with flexible start and end times

Applications only feasible at very low compute prices

Spot instances

Spot instances

Page 74: AWS Webcast - Journey through the Cloud - Cost Optimization

100%

Achieving economies of scale

Time

Page 75: AWS Webcast - Journey through the Cloud - Cost Optimization

Reserved capacity

100%

Achieving economies of scale

Time

Page 76: AWS Webcast - Journey through the Cloud - Cost Optimization

On

Reserved capacity

100%

On-demand

Time

Achieving economies of scale

Page 77: AWS Webcast - Journey through the Cloud - Cost Optimization

On

Reserved capacity

100%

On-demand

Time

Achieving economies of scale

Spot

Page 78: AWS Webcast - Journey through the Cloud - Cost Optimization
Page 79: AWS Webcast - Journey through the Cloud - Cost Optimization
Page 80: AWS Webcast - Journey through the Cloud - Cost Optimization

If your bid > spot price You get an instance

Page 81: AWS Webcast - Journey through the Cloud - Cost Optimization

If your bid < spot price Your instance is terminated

Page 82: AWS Webcast - Journey through the Cloud - Cost Optimization

Architecting for spot instances

Decouple components

Separate interactive & backend processing

Use frameworks such as Elastic MapReduce

Design for interruption

Use SQS, SWF

Place data in a durable store such as S3, SimpleDB or DynamoDB

Save progress regularly

Page 83: AWS Webcast - Journey through the Cloud - Cost Optimization

Job Flow

14 Hours

Duration:

Scenario #1

EMR with spot instances

#1: Cost without Spot 4 instances *14 hrs * $0.50 = $28

Page 84: AWS Webcast - Journey through the Cloud - Cost Optimization

Job Flow

14 Hours

Duration:

Scenario #1

Duration:

Job Flow

7 Hours

Scenario #2

EMR with spot instances

#1: Cost without Spot 4 instances *14 hrs * $0.50 = $28

Page 85: AWS Webcast - Journey through the Cloud - Cost Optimization

Job Flow

14 Hours

Duration:

Scenario #1

Duration:

Job Flow

7 Hours

Scenario #2

EMR with spot instances

#1: Cost without Spot 4 instances *14 hrs * $0.50 = $28

#2: Cost with Spot 4 instances *7 hrs * $0.50 = $14 + 5 instances * 7 hrs * $0.25 = $8.75

Total = $22.75

Page 86: AWS Webcast - Journey through the Cloud - Cost Optimization

Job Flow

14 Hours

Duration:

Scenario #1

Duration:

Job Flow

7 Hours

Scenario #2

EMR with spot instances

#1: Cost without Spot 4 instances *14 hrs * $0.50 = $28

#2: Cost with Spot 4 instances *7 hrs * $0.50 = $14 + 5 instances * 7 hrs * $0.25 = $8.75

Total = $22.75

Time Savings: 50% Cost Savings: ~22%

Page 87: AWS Webcast - Journey through the Cloud - Cost Optimization

Spot customers

Page 88: AWS Webcast - Journey through the Cloud - Cost Optimization

Elastic capacity Instance types Reserved instances Spot instances Complementary services

5 Steps for cost optimization

Page 89: AWS Webcast - Journey through the Cloud - Cost Optimization

Elastic capacity Instance types Reserved instances Spot instances Complementary services

5 Steps for cost optimization

Page 90: AWS Webcast - Journey through the Cloud - Cost Optimization

$0.028 per hour

Web Servers

Availability Zone

Elastic Load

Balancer DNS

Page 91: AWS Webcast - Journey through the Cloud - Cost Optimization

Web Servers

$0.065 per hour

(small instance)

Availability Zone

$0.028 per hour

Web Servers

Availability Zone

EC2 instance

+ software LB

Elastic Load

Balancer DNS

DNS

VS

Page 92: AWS Webcast - Journey through the Cloud - Cost Optimization

SQS queue

Consumers Producer

$0.005 per

10,000 Requests ($0.0000005 per Request)

Page 93: AWS Webcast - Journey through the Cloud - Cost Optimization

Producer

SQS queue

Consumers

Consumers Producer

EC2 instance

+ software queue

$0.005 per

10,000 Requests ($0.0000005 per Request)

$0.065 per hour

(small instance)

VS

Page 94: AWS Webcast - Journey through the Cloud - Cost Optimization

Software vs services

Software on EC2

Pros: Use custom features

Cons:

Requires an instance SPOF

Limited to one AZ DIY administration

AWS Services

ELB, SNS, SQS, SES, SWF, DynamoDB etc

Pros: Pay as you go

Scalability Availability

High performance

Page 95: AWS Webcast - Journey through the Cloud - Cost Optimization

Summary

Page 96: AWS Webcast - Journey through the Cloud - Cost Optimization

Elastic capacity Instance types Reserved instances Spot instances Complementary services

5 Steps for cost optimization

Page 97: AWS Webcast - Journey through the Cloud - Cost Optimization

Where to go next

Page 98: AWS Webcast - Journey through the Cloud - Cost Optimization

aws.amazon.com/economics

aws.amazon.com/calculator

Useful links

Page 99: AWS Webcast - Journey through the Cloud - Cost Optimization

Useful links

http://aws.amazon.com/whitepapers

Page 100: AWS Webcast - Journey through the Cloud - Cost Optimization
Page 101: AWS Webcast - Journey through the Cloud - Cost Optimization

aws.amazon.com