This session is a deep dive into techniques used by successful customers who optimized their use of AWS. Learn tricks and hear tips you can implement right away to reduce waste, choose the most efficient instance, and fine-tune your spending; often with improved performance and a better end-customer experience. We showcase innovative approaches and demonstrate easily applicable methods to save you time and money with Amazon EC2, Amazon S3, and a host of other services.
26. Problem: How to scale up to
accommodate sudden traffic
spikes?
Solution: Auto ScalingAuto Scaling
27. Auto Scaling real world example
• Baseline traffic: 300+ thousand pages / hour
130 TB/month outbound traffic
• Peak: 2.0+ million pages / hour (~7x baseline)
• Architectural changes: e.g., move from local
SSDs to provisioned IOPS needed due to this
scale
• Auto Scaling provides 23% savings over three
years
28. Best practices
• Identify idle resources using Trusted
Advisor
• Turn them off
• Design to scale up and scale down using
Auto Scaling or a queue-based approach
• Match your usage and capacity—don’t pay
for idle resources!
29. Are you using the
most cost-effective
instances or
resources?
33. Amazon CloudWatch monitoring
Basic
• 7 metrics for Amazon EC2
including:
– CPU utilization
– Data transfer
– Disk usage and more
• 5-minute frequency
• Metrics for Amazon EBS,
Amazon DynamoDB, Amazon
RDS, etc.
Detailed
• 1-minute frequency
• Aggregation by instance type and
AMI
38. t2.medium
• 4 GiB RAM
• Baseline performance: 40%
• Bursts beyond this based on CPU
credits
• Less than $18 per month
• Details: http://amzn.to/1sl2bKa
• Web servers, dev, small databases
t2
39. t2 vs m3.medium or c3.large
Instance vCPU Mem
(GiB)
Monthly price
(3-yr heavy RI )
Ideal use case
m3.medium 1 3.75 $20.16 Always available, balanced
c3.large 2 3.75 $29.95 Always available, compute
t2.medium 2 4 $17.87 Bursty workloads
42. Guidance
• Inspect your workloads (use CloudWatch!)
• Can your workload run on a t2?
• If not, is it memory intensive? àr3
• Is it compute intensive? à c3
• Others to consider:
– i2 for storage-optimized
– g2 for GPU
43.
44.
45. Savings potential
If t2 works for you
• 11%: Switch from m3.medium to t2.medium
• 40%: Switch from c3.large to t2.medium
Instance optimization
• 25%: Switch to c3 for compute-intensive apps
(m3.2xl -> c3.2xl)
• 41%: Switch to r3 for memory-intensive apps
(m3.2xl -> r3.xlarge)
46. Best practices:
1. Monitor instances with CloudWatch
2. Switch to t2 as possible
3. Use compute- and memory-focused
instances as needed
65. AWS’s higher-
level services
automate your
work and save
you money
CloudFront
DynamoDB
Amazon RDS
ElastiCache
Amazon Redshift
Amazon EMR
Amazon
Kinesis
Amazon
WorkSpaces
75. • Control and verify
• Design for elasticity
• Match resources and
workload
• Purchase for savings
• Use application
services
• Model and track
Frameworks to remember
76. Tools to use
• IAM, AWS console
• Auto Scaling,
Amazon SQS
• Amazon CloudWatch
• AWS Trusted Advisor
• Detailed billing reports
and Cost Explorer
• Partners
77. • Turn off untagged resources
• Stop idle instances
• Use instances matched to task
and less expensive ones
• Baseload with RIs
• Use Spot Instances for non-
stateful workloads
• Model and track spending
Best practices