This page describes how to view and apply sizing recommendations provided by Compute Engine. To learn more about memory and CPU, read the Machine Types documentation.
Compute Engine provides machine type recommendations to help you optimize the resource utilization of your virtual machine instances. These recommendations are generated automatically based on system metrics gathered by the Google Stackdriver Monitoring service. Use these recommendations to resize your instance's machine type to more efficiently use a machine type's resources.
Before you begin
During Beta, sizing recommendations are available free of charge. However, Google might charge for this feature in future releases.
Viewing sizing recommendations
Compute Engine makes recommendations through the Google Cloud Platform Console. Recommendations are turned on by default, but if you need to toggle recommendations on or off, follow these instructions.
- Go to the VM instances page.
- Select your project and click Continue.
Click the Recommendations button on the top-right corner to toggle recommendations on or off. If there is a blue bar at the bottom of the button, recommendations are enabled:
Look at the Recommendation column to review recommendations for individual instances. You can also sort the column by amount of estimated savings. If there are no recommendations next to your instances, Compute Engine does not have any recommendations to make.
When you create a new instance, recommendations for the new instance will appear 24 hours after the instance has been created. If you change the machine type of an instance, Compute Engine will provide new recommendations 24 hours after the change.
Afterwards, virtual machine recommendations are refreshed at regular intervals throughout the day.
Resizing instances according to recommendations
If you determine that you want to apply the recommendations made by Compute Engine, you can resize the instance directly from the recommendations screen.
On the VM instances page, click on recommendation text for the instance you want to resize.
A popup appears with more details and an Apply button to apply the recommendations to the instance. Clicking this button causes Compute Engine to stop the instance, change its machine type, and restart the instance.
Optionally, you can also click the Customize link to customize the instance as you prefer.
Click the Apply button to apply the changes.
If you are done with a recommendation, you can dismiss it. Dismissing removes a recommendation from the total savings estimate and also minimizes the appearance of the recommendation by turning the recommendation gray.
To dismiss a single recommendation:
On the VM instances page, click on the recommendation text you want to dismiss.
A popup appears with more details and a Dismiss recommendation button.
Click Dismiss recommendation.
To dismiss all recommendations, click the Dismiss all button on the VM instances page.
To restore a recommendation:
On the VM instances page, click on the gray recommendation text you want to restore.
A popup appears with more details and a Restore recommendation button.
Click Restore recommendation.
Metrics used for sizing recommendations
Compute Engine monitors the CPU and memory utilization of running virtual machines and makes recommendations using the last 8 days of data. Compute Engine might make a recommendation if:
Your instance has had low CPU utilization most of the time. Compute Engine will recommend a machine type with fewer virtual CPUs.
Your instance has had high CPU utilization most of the time. Compute Engine will recommend a machine type with more virtual CPUs.
Your instance has not used a large fraction of its memory. Compute Engine will recommend a machine type with less memory.
Your instance has actively been using a large fraction of its memory most of the time. Compute Engine will recommend a machine type with more memory.
Compute Engine might make recommendations to use either a standard or custom machine type. Note that there are some limitations in the amount of memory and vCPU available to a machine. In particular, increasing one resource might require increasing the other at the same time, to follow the specifications of a valid machine type. Also, Compute Engine will only recommend machine types that are available in the zone where the instance is running.
See Custom Machine Type specifications for details.
For cost difference estimations, the cost of an instance is based on the previous week's usage (before sustained use discount) and is extrapolated to 30 days. This is then compared to the recommended machine type monthly cost (before sustained use discount). For accurate pricing and details, read the pricing documentation.
During Beta, you can email feedback to the Sizing recommendations discussion group.