Optimize SQL Server sizing by using Compute Optimizer - AWS Prescriptive Guidance

Optimize SQL Server sizing by using Compute Optimizer

Overview

AWS Compute Optimizer helps database administrators (DBAs) discover Microsoft SQL Server workloads on Amazon Elastic Compute Cloud (Amazon EC2) and rightsize EC2 instances to reduce license costs by up to 25%. The inferred workload type feature in Compute Optimizer uses machine learning (ML) and automatically detects the applications that might be running on your AWS resources. Compute Optimizer includes support for SQL Server as an inferred workload type. By using the inferred workload type feature, you can pinpoint cost-saving opportunities based on the specific workload running on your Amazon EC2 instances.

With this feature, you can categorize cost-saving opportunities by supported inferred workload types, such as SQL Server. Compute Optimizer can automatically discover SQL Server EC2 instances that are over-provisioned. You can switch to the EC2 console to downsize the instance, which helps reduce the licensing and infrastructure costs.

You can also use Compute Optimizer to make SQL Server licensing recommendations. For more information, see Optimize SQL Server licensing by using Compute Optimizer in this guide.

Configure Compute Optimizer

For instructions for using Compute Optimizer with SQL Server inferred workloads, see Optimizing performance and reducing licensing costs: Leveraging AWS Compute Optimizer for Amazon EC2 SQL Server instances (AWS Blog). You can opt in for standalone accounts, accounts that are a member of an organization, and management accounts of an organization. For standalone and member accounts, opting in enables Compute Optimizer for that account only. For an organization management account, you can choose whether to enable Compute Optimizer in that account only or for all member accounts of the organization.

The Compute Optimizer opt-in process automatically creates an AWS Identity and Access Management (IAM) service-linked role. For more information, see Using service-linked roles for AWS Compute Optimizer.

Compute Optimizer analyzes your resources based on Amazon CloudWatch metrics, such as CPU, I/O, network, and Amazon Elastic Block Store (Amazon EBS) usage. To generate recommendations, at least 30 consecutive hours of CloudWatch metric data is required in the past 14 days. If you enable the enhanced infrastructure metrics feature, it extends the utilization metrics to 93 days. For more information, see CloudWatch metric requirements and Enhanced infrastructure metrics in the Compute Optimizer documentation.

Compute Optimizer provides options and the savings associated with each option, based on vCPU, memory, storage, network, risk, and migration effort. You can use the CloudWatch metrics dashboard to analyze the data being used to make the recommendation. With this data, you can rightsize your EC2 instances that are running SQL Server workloads. For more information about how to change your instance type, see Change the instance type in the Amazon EC2 documentation.

Additional resources