TalksWin-win: Maximize Amazon EC2 savings while improving performance (CMP214)
Win-win: Maximize Amazon EC2 savings while improving performance (CMP214)
Key Takeaways
Savings and Efficiency
Savings has two aspects:
Minimizing unnecessary costs by turning off unused instances
Ensuring optimal resource utilization to balance performance and cost
The promise of the cloud is elasticity, where resources can scale up and down based on demand. This requires the right autoscaling policies and techniques.
Autoscaling and Scaling Strategies
Dynamic scaling: Scaling based on actual demand metrics like CPU or memory utilization.
Step scaling: Scaling based on thresholds.
Target tracking: Scaling to maintain a target metric.
Scheduled scaling: Scaling based on predictable events or patterns.
Predictive scaling: Scaling based on machine learning models and past behavior.
Instance Optimization
AWS has expanded from a single instance type (M1) to over 800 different instance types.
Nitro is a hardware-based virtualization platform that enables efficient instance provisioning.
Graviton is AWS's Arm-based chip that offers 20-40% better price-performance compared to x86 instances.
Compute Purchase Options
On-Demand: No commitments, pay as you go.
Savings Plans: Up to 72% savings with 1-3 year commitments.
Spot: Up to 90% discount, but instances can be interrupted.
New Bank's Journey
New Bank, a large digital bank in Latin America, has adopted a multi-pronged efficiency strategy:
Leveraging Spot Instances
Migrating to Graviton
Diversifying instance types
Applying canonical approaches for consistent changes
Key lessons learned:
Understand service startup times and interruption rates for Spot
Determine the optimal Spot discount threshold
Diversify instance types to maximize Spot availability
Consider the green advantages of Graviton
Next steps for New Bank:
Developing more nuanced compute purchase strategies as the business expands.
These cookies are used to collect information about how you interact with this website and allow us to remember you. We use this information to improve and customize your browsing experience, as well as for analytics.
If you decline, your information won’t be tracked when you visit this website. A single cookie will be used in your browser to remember your preference.