COST06-BP03 Select resource type, size, and number 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 Elastic Compute Cloud (Amazon EC2), Amazon DynamoDB, Amazon Elastic Block Store (Amazon EBS) (PIOPS), Amazon Relational Database Service (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.
Level of risk exposed if this best practice is not established: Low
Implementation guidance
Create a feedback loop within the workload that uses active metrics from the running
workload to make changes to that workload. You can use a managed service, such as AWS Auto Scaling
Some AWS services have built in automatic type or size selection, such as Amazon Simple Storage Service(Amazon S3) Intelligent-Tiering
Implementation steps
-
Configure workload metrics: Ensure you capture the key metrics for the workload. These metrics provide an indication of the customer experience, such as the workload output, and align to the differences between resource types and sizes, such as CPU and memory usage.
-
View rightsizing recommendations: Use the rightsizing recommendations in AWS Compute Optimizer to make adjustments to your workload.
-
Select resource type and size automatically based on metrics: Using the workload metrics, manually or automatically select your workload resources. Configuring AWS Auto Scaling or implementing code within your application can reduce the effort required if frequent changes are needed, and it can potentially implement changes sooner than a manual process.
Resources
Related documents: