38
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Tom Jones, AWS Partner SA Judd Kaiser, Program Manager, Cloud Computing, Ansys. Inc. November 29, 2016 GPSISV3 Dollars and Sense Technical Tips For Continual Cost Optimization

AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Embed Size (px)

Citation preview

Page 1: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

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

Tom Jones, AWS Partner SA

Judd Kaiser, Program Manager, Cloud Computing, Ansys. Inc.

November 29, 2016

GPSISV3

Dollars and SenseTechnical Tips For Continual Cost Optimization

Page 2: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Money vs. Value

- https://flic.kr/p/ActK3Z

Page 3: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Other customers have done this, so can you!

Saves $90,000 / month on unused instances

Page 4: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Tools

https://flic.kr/p/5mcmJC

AWS tools

Amazon CloudWatch

Trusted Advisor

Billing alerts

Cost Explorer

AWS Budgets

Consolidated Billing

Monitoring

Unused Resources

Underused Resources

Forecast

Page 5: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Detailed Billing Reports & Billing Alerts

Page 6: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Trusted Advisor: Enterprise Strength Monitoring and

Optimization

Monitors and

recommends

optimizations for:

Cost

Security

Fault Tolerance

Performance

“Over the last couple years, we’ve sent more than 2.6 million Trusted Advisor

notifications that have saved customers over US$350 million dollars.”

Page 7: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Cost Explorer

Page 8: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Partner solutions

Page 9: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

CloudHealth

Rightsizing

RI recommendations

Retrospective tagging (Dimensions)

API

Datadog integration

Page 10: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Cloudability

Rightsize EC2 (and other services)

Storage and Database optimizations

RI recommendations

API

Page 11: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Tactics

https://flic.kr/p/5ZcoBm

Monitoring and forecasting

Kill Zombies!

Rightsize your instances

Avoid complexity where possible

Page 12: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Leverage The Right Storage Classes…

AWS Cloud

Amazon

Glacier

Gateway Appliance/

AWS Storage Gateway

Amazon

S3

Block File

On-premises Data Center

Archive Backup Disaster

Recovery

Amazon

EBS

Amazon S3 Infrequent Access

• For data accessed less than two times a

month

Amazon Glacier

• Same durability as S3

• 3 to 5 hours restore time

• Up to 65% savings

• Great for archiving, long-term backups

and old data

Amazon EFS

Page 13: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Use AWS Managed or Application

Services…

Elastic Load

Balancing

(ELB)

Amazon Relational

Database Service

(RDS)

Amazon

ElastiCache

Amazon

DynamoDBAmazon Simple

Queue Service

(SQS)

Amazon Simple

Email Service

(SES)

AWS

Lambda

Amazon Elastic

MapReduce

(EMR)

Amazon Simple

Notification Service

(SNS)

Amazon

Kinesis

Amazon

Route 53

Amazon

Redshift

Page 14: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

To Offload Your Architecture…

+

Standard Setup

4 x Medium Instances

$193

AWS Data Transfer 1 TB

$92

Total = $285

Optimized

1 x Medium Instance

$48

CloudFront Data 1 TB

$87

CloudFront Requests (10M)

$7.5

Total = $142.5

50%

6X

Cheaper

Faster

Page 15: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Choose the right EC2 pricing plan for your business…

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: Buy RIs with

short remaining terms

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

Page 16: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

With Spot the rules are simple

Markets where the price of compute changes based on

supply and demand.

You’ll never pay more than your bid. When the market exceeds your bid you get 2 minutes to

wrap up your work.

Page 17: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

50% Bid

75% Bid

You pay the

market

price

Bid Price vs. Market Price

25% Bid

Page 18: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

EC2 SPOT Blocks

Run continuously for up to 6 hours

Save up to 50% off on-demand pricing

Using a single additional parameter:

Page 19: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Spot Bid Advisor – aws-spot-labs

Page 20: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Easily use EC2 Spot

instances for

production workloads

Amazon EC2 Spot Bid Advisor

1) We make this easy using the

Spot bid advisor

2) With deliberate pool

selection and bidding, you

will keep your Spot instance

as long as you need to.

3) And with new features like

Spot fleet diversified we do

the heavy lifting for you...

Page 21: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Use Reserved Instances…

You commit to pay for an instance for one or three years

We reserve the capacity, and offer you considerable savings over On Demand

during the term

You decide how you pay:

No Upfront (Just hourly charges for all hours of the term)

Partial Upfont (Upfront Payment, plus hourly charges for all hours of the term)

All Upfront (Upfront Payment only)

Page 22: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Base Price - On Demand: No Commitment, Pay only what you use, no capacity reservation but once started no interruption

10% less - Scheduled Reserved Instances: Commit to Schedule of at least 1200 hours for one year, capacity reservation

30-60% less - Standard Reserved Instances: Commit to one orthree years, capacity reservation

40-60% less - Spot Blocks: Bid for 2-6 hours blocks ofuninterrupted time

Up to 85% less - Spot: Bid for instances, interrupted if market pricehigher than your bid price, 2mins advanced notice

EC2 Cost Optimization Option for Every Need

Page 23: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Advanced Tactics

https://flic.kr/p/dpFTX5

Augmented Auto Scaling

Offloading

Licensing

SaaS Considerations

Page 24: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Auto Scaling – It’s not just for Instances!

Adjust DynamoDB IOPs on the fly:

Dynamic DynamoDB

https://github.com/sebdah/dynamic-dynamodb

DynamoDB Lambda Autoscale

https://github.com/channl/dynamodb-lambda-autoscale

Page 25: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Offload Your Architecture

The more you can offload, the less

infrastructure you need to maintain, scale,

and pay for

Three easy ways to offload:

Introduce caching

Use Amazon CloudFront

Leverage existing Amazon web services

Page 26: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Caching Saves Money

DynamoDB Reads

Saved 3k reads per second

(>20k reads per second in total)Saved 20k reads per second!

Page 27: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Offload Popular Traffic to

Amazon S3 and/or CloudFront

Page 28: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

License flexibility via Dedicated Hosts

When running Microsoft Workloads, for example:

Instance-host affinity allows you to comply with the 90-day rule

Per-core and per-socket visibility enables reporting at the

physical level

Placement controls ensure that instances run on the server you

want them to, helping you meet stringent compliance and

regulatory requirements

AWS Config allows you to record when instances start, stop, or

are terminated for license reporting and true-ups

Page 29: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

SaaS Specific Tactics

SaaS provides new vectors for optimization:

Allocate cache to your most demanding users

Grant different instances to different customers

AWS Lambda cost model matches the pricing model of SaaS

ARC 301 – Architecting Next Generation SaaS Applications on AWS

ARC 408 – Optimizing SaaS Solutions on AWS

Page 30: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

ANSYS enables customers to

predict with confidence that their

products will thrive in the real world.

About ANSYS

Page 31: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Our most innovative customers are rapidly deploying simulation

2005 2015 2020

1 in 22 1 in 6 ALL

The ANSYS Vision: Every Engineer Will Use Simulation

Page 32: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

ANSYS Enterprise Cloud(an AWS-based simulation data center)

Key solution components

• Auto-scaling HPC (Cycle)

• Interactive 3D graphics (Nice)

• Cloud storage

Page 33: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

ANSYS Journey to Date

The evolution of the solution

architecture, over 16 months:

• Four major versions

• Five regions

• 70% lower operating cost

• 18x better performance

Driving the cost savings

• Adjusted requirements

• Reduced redundancy

• New instance types

• Service consolidation

Page 34: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

The Customer Journey

A new business model for hardware

• Elastic HPC capacity

• Use and optimize

• Mix of Reserved, Spot, and On-

Demand instances

How we are tracking at ANSYS?

• Multiple accounts

• Instance tagging for tracking

• Detailed billing reports

• Cloudability

Page 35: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Continuous Cost Optimization

https://flic.kr/p/8Khkek

Monitor and Forecast continually

Actively Manage

Clean up your own mess

Architect for value

Purchase wisely

Invest in tools and automation

Page 36: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Virtuous Cycle

Cost

Tactics

MonitorTune

Page 37: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Thank you!

Page 38: AWS re:Invent 2016: Dollars and Sense: Technical Tips for Continual Cost Optimization (GPSISV3)

Remember to complete

your evaluations!