cost optimization on aws · 2018. 5. 10. · how pricing works on aws 5/17. planning and account...

Post on 06-Mar-2021

3 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

COST OPTIMIZATION ON AWS

Barış Balta Founder & Principal SA @ Sufle

baris@sufle.io

https://linkedin.com/in/barisbalta

• How pricing works on AWS • Planning and Account Management • Choosing right AWS Services for you • Scaling • Questions

AGENDA

2/17

HOW PRICING WORKS ON AWS

Utility based Pay only what you use You chose only services you need

Start / Stop any time No long-term contracts

3/17

Cost per unitSpend

$ $ $

Spend

HOW PRICING WORKS ON AWS

4/17

$ $ $

Compute Storage Data Transfer

per hour (in mins) per GB per GB out

Pricing tools AWS Simple Monthly Calculator

AWS Total Cost of Ownership (TCO) Calculator

AWS Billing and Cost Management Console

HOW PRICING WORKS ON AWS

5/17

PLANNING AND ACCOUNT MANAGEMENT

• Consider Operational cost and TCO • Plan workloads first • Check your plans regularly • RTFM First, Use Then • Check for Free Tier • Use reserved resources • Use spot resources • Avoid waste of resources

6/17

• Use Consolidated Billing and Organizations • Care for Role Based Access Control (RBAC) • Use IAM policies right • Check for Volume Discounts • Ask your AWS Account Manager for credits • Monitor your costs • Billing alerts

PLANNING AND ACCOUNT MANAGEMENT

7/17

CHOOSING RIGHT AWS SERVICES FOR YOU

• Well Architected Framework • Consider managed services • Use right setup for your use case • Forget on-premise approach • Consider elasticity options • Premature optimization is evil

8/17

CHOOSING RIGHT AWS SERVICES FOR YOU

RDS MySQL

Click and go Automated backups

Easily scaleable and elastic Multi-AZ option

Easy updates No OS management effort

Cloudwatch

EC2 MySQL

Setup by yourself Setup backups

Less scaleable and elastic Setup HA

Manage updates Manage OS

Setup monitoring

9/17

CHOOSING RIGHT AWS SERVICES FOR YOU

10 TBs S3 Standard Storage: ~$230/m 10 TBs S3 Infrequent Access Storage: ~$125/m

%46 Saving !!!

Case: We're going to store critical transaction reports on AWS S3 for a giant enterprise. After 1 month team will access reports rarely. Team will need to access these reports anytime immediately when needed.

10/17

SCALING

• Right resource type & size • Automatic and Proactive scaling • Spot instances

11/17

SCALING

Type ECU Mem Costm4.10xlarge 124 160G $2,220/h

m5.xlarge 15 16G $0,214/hc5.xlarge 16 8G $0,192/h

c5.2xlarge 31 16G $0,384/hc5.4xlarge 62 32G $0,768/h

r4.large 7 15G $0,148/hr4.xlarge 13 30G $0,296/h

x1e.xlarge 12 122G $1,000/h

CPU intensive app req: 10 ECU CPU Memory intensive app req: 13G memory

MongoDB req: 28G memory HP MySQL Master DB instance req: 110G memory12/17

m4.large: $0.111/h - 46 instance hours - $153/m

SCALING

13/17

t2.medium: $0.05/h - 77 instance hours - ~$115/m %25 Saving !!!

SCALING

14/17

• t2.micro : 1vCPU - 1GB Memory - Low-Moderate Network Perf. • m5.large: 2vCPU - 8GB Memory - High Network Perf.

Case: A single t2.micro VPN instance inside a VPC supports a company of 100 concurrent users. This VPN instance allow employees communicate out with your applications running on EC2 instances in private subnets. Employees had started suffering about serious network performance degradation. What might be the problem?

SCALING

15/17

c4.4xlarge - On-Demand: $0.9050/h - Spot: $0.2490/h 100hr Computing Task - On-Demand: $90.5 - Spot: $24.9

%72 Saving !!!

SCALING

16/17

SORULARINIZ?

Barış Balta Founder & Principal SA @ Sufle

baris@sufle.io

https://linkedin.com/in/barisbalta

SONRA SORSAM?

17/17

AWS TURKEY USERS COMMUNITY

AWSTALKS.COM

SORULARINIZIN CEVAPLARINI BULABİLİR, KATKIDA BULUNABİLİRSİNİZ.

top related