COST 6: How do you meet cost targets when you select resource type, size and number?
Ensure that you choose the appropriate resource size and number of resources for the task at hand. You minimize waste by selecting the most cost effective type, size, and number.
Resources
Cost Optimization: EC2 Right Sizing
Amazon CloudWatch features
AWS Auto Scaling
Best Practices:
-
Perform cost modeling: Identify organization requirements and perform cost modeling of the workload and each of its components. Perform benchmark activities for the workload under different predicted loads and compare the costs. The modeling effort should reflect potential benefit: for example, time spent is proportional to component cost.
-
Select resource type and size based on data: Select resource size or type based on data about the workload and resource characteristics: for example, compute, memory, throughput, or write intensive. This selection is typically made using a previous version of the workload (such as an on-premises version), using documentation, or using other sources of information about the workload.
-
Select resource type and size automatically based on metrics: Use metrics from the currently running workload to select the right size and type to optimize for cost. Appropriately provision throughput, sizing, and storage for services such as Amazon EC2, Amazon DynamoDB, Amazon EBS (PIOPS), Amazon RDS, Amazon EMR, and networking. This can be done with a feedback loop such as automatic scaling or by custom code in the workload.
Improvement Plan
Perform cost modeling
Select resource type and size based on data
Select resource type and size automatically based on metrics
CloudWatch Getting Set Up
CloudWatch Publishing Custom Metrics
AWS Compute Optimizer
Getting Started with Amazon EC2 Auto Scaling
Launch an EC2 Instance Using the SDK